code: def get_task(opt):
      module_name = "parlai.tasks.squad.agents"
      class_name = "DefaultTeacher"
      my_module = importlib.import_module(module_name)
      task_class = getattr(my_module, class_name)
      task_opt = opt.copy()
      task_opt["datatype"] = "train"
      task_opt["datapath"] = opt["datapath"]
      return task_class(task_opt)
  
file_path: ParlAI/parlai/chat_service/tasks/qa_data_collection/worlds.py
imports: from parlai.core.worlds import World, validate
  from parlai.chat_service.services.messenger.worlds import SimpleMessengerOverworld, OnboardWorld
  import importlib
label_desc: Use image node_id 1 for calling a global function with example usage: get_task(opt) and returns: task_class