code: def make_world(opt, agents, initialization_data):
      # TODO: merge this function in with the make_world in in parlai/crowdsourcing/tasks/model_chat/worlds.py
      # Extract important components from opt
      statistics_condition = opt["statistics_condition"]
      context_generator = opt["context_generator"]
  
      agents[0].agent_id = "YOU"
  
      # Decide on a bot to use
      run_statistics = opt["run_statistics"]
      with statistics_condition:
          remaining_counts_needed = [
              (m, c - run_statistics[m])
              for (m, c) in opt["conversations_needed"].items()
          ]
          remaining_counts_needed.sort(reverse=True, key=lambda x: x[1])
          model_name = remaining_counts_needed[0][0]
          print(
              f"Remaining conversation counts needed: {remaining_counts_needed}"
          )
          print(f'Choosing the "{model_name}" model for the bot.')
  
      # Get context: personas, previous utterances, etc.
      if context_generator is not None:
          context_info = context_generator.get_context(model_name)
      else:
          context_info = None
  
      if context_info is None:
          logging.warning("SHOULD END THE TASK")
          return None
  
      bot_worker = get_bot_worker(opt=opt, model_name=model_name)
  
      return ModelChatWorld(
          opt,
          agent=agents[0],
          bot=bot_worker,
          model_name=model_name,
          context_info=context_info,
      )
  
file_path: ParlAI/parlai/crowdsourcing/projects/multisession_chat/human_eval/worlds.py
imports: import time
  from typing import Any, Dict, List, Tuple
  from parlai.core.worlds import validate
  from parlai.crowdsourcing.tasks.model_chat.utils import Compatibility
  from parlai.crowdsourcing.tasks.model_chat.worlds import BaseModelChatWorld, get_bot_worker, get_world_params
  import parlai.utils.logging
label_desc: Use image node_id 1 for calling a global function with example usage: make_world(opt, agents, initialization_data) and returns: ModelChatWorld, None