code: def create_room(room):
      
  
      if room.custom_server:
          return
  
      def _create_room(xmpp):
          muc = xmpp.plugin['xep_0045']
          muc.joinMUC(room.jid, xmpp.requested_jid.user)
          muc.configureRoom(room.jid, _set_form_values(xmpp, room))
  
      current_plugin.logger.info('Creating room %s', room.jid)
      _execute_xmpp(_create_room)
docs: Creates a MUC room on the XMPP server.