class_docstr: Example one person world that talks to a provided agent (bot).
class_docstr_tok: ["Example","one","person","world","that","talks","to","a","provided","agent","(","bot",")","."]
code: def generate_world(opt, agents):
      if opt["models"] is None:
          raise RuntimeError("Model must be specified")
      return MessengerBotChatTaskWorld(
          opt,
          agents[0],
          create_agent_from_shared(
              opt["shared_bot_params"][
                  MessengerBotChatTaskWorld.MODEL_KEY
              ]
          ),
      )
  
imports: from parlai.core.worlds import World
  from parlai.chat_service.services.messenger.worlds import OnboardWorld
  from parlai.core.agents import create_agent_from_shared
label_desc: Use image node_id 2 for calling the MessengerBotChatTaskWorld obj's underlying member method code with example usage: obj.generate_world(opt, agents) and returns: MessengerBotChatTaskWorld