code: def set_guest_access(self, room_id, guest_access):
          
          content = {
              "guest_access": guest_access
          }
          return self.send_state_event(room_id, "m.room.guest_access", content)
docs: Set the guest access policy of the room.
  
          Args:
              room_id(str): The room to set the rules for.
              guest_access(str): Wether guests can join. One of: ["can_join",
                  "forbidden"]