code: def create_agents(opt):
      if not opt.get("interactive_task", False):
          return create_task_agent_from_taskname(opt)
      else:
          # interactive task has no task agents (they are attached as user agents)
          return []
  
imports: import copy
  import os
  import random
  import re
  from collections import defaultdict
  from typing import List, Optional, Dict, Tuple
  from parlai.core.opt import Opt
  from parlai.core.teachers import ParlAIDialogTeacher, create_task_agent_from_taskname
  from parlai.tasks.convai2.agents import BothTeacher
  from parlai.tasks.empathetic_dialogues.agents import EmpatheticDialoguesTeacher
  from parlai.tasks.wizard_of_wikipedia.agents import WizardDialogKnowledgeTeacher
  from parlai.utils.misc import warn_once
  from parlai.utils.io import PathManager
  from .build import build
label_desc: Use image node_id 7 for calling a global function with example usage: create_agents(opt) and returns: create_task_agent_from_taskname, list