code: def create_room(
                  self,
                  alias=None,
                  name=None,
                  is_public=False,
                  invitees=None,
                  federate=None
              ):
          
          content = {
              "visibility": "public" if is_public else "private"
          }
          if alias:
              content["room_alias_name"] = alias
          if invitees:
              content["invite"] = invitees
          if name:
              content["name"] = name
          if federate is not None:
              content["creation_content"] = {'m.federate': federate}
          return self._send("POST", "/createRoom", content)
docs: Perform /createRoom.
  
          Args:
              alias (str): Optional. The room alias name to set for this room.
              name (str): Optional. Name for new room.
              is_public (bool): Optional. The public/private visibility.
              invitees (list<str>): Optional. The list of user IDs to invite.
              federate (bool): Optional. Сan a room be federated.
                  Default to True.