Can a lawyer represent two defendants?

Legal subjectivity:

A lawyer can represent multiple defendants, and there is no conflict of interest, which is decided by the lawyer himself. According to the law, a lawyer may not act as an agent for both parties in the same case, nor may he act as an agent for legal affairs with conflicts of interest with himself or his close relatives.

Legal objectivity:

Article 50 of the Code of Conduct for Lawyers (for Trial Implementation) is under any of the following circumstances: (1) a lawyer acts as an agent for both parties in the same case, or represents legal affairs with conflicts of interest with himself or his close relatives; (2) Different lawyers from the same law firm act as agents of victims and defenders of criminal suspects and defendants in the same criminal case, except that there is only one law firm in the county with the prior consent of the parties; (3) In civil litigation, administrative litigation and arbitration cases, different lawyers of the same law firm are agents of both parties to the dispute at the same time, or our firm or its staff is one party and other lawyers of our firm are agents of the other party.