code: def import_tasks(tasks_dir, namespace):
      for file in os.listdir(tasks_dir):
          path = os.path.join(tasks_dir, file)
          if (
              not file.startswith("_")
              and not file.startswith(".")
              and (file.endswith(".py") or os.path.isdir(path))
          ):
              task_name = (
                  file[: file.find(".py")]
                  if file.endswith(".py")
                  else file
              )
              importlib.import_module(namespace + "." + task_name)
  
              # expose `task_parser` for sphinx
              if task_name in TASK_REGISTRY:
                  parser = argparse.ArgumentParser(add_help=False)
                  group_task = parser.add_argument_group("Task name")
                  # fmt: off
                  group_task.add_argument('--task', metavar=task_name,
                                          help='Enable this task with: ``--task=' + task_name + '``')
                  # fmt: on
                  group_args = parser.add_argument_group(
                      "Additional command-line arguments"
                  )
                  TASK_REGISTRY[task_name].add_args(group_args)
                  globals()[task_name + "_parser"] = parser
  
file_path: fairseq/fairseq/tasks/__init__.py
imports: import argparse
  import importlib
  import os
  from fairseq.dataclass import FairseqDataclass
  from fairseq.dataclass.utils import merge_with_parent
  from hydra.core.config_store import ConfigStore
  from .fairseq_task import FairseqTask, LegacyFairseqTask
label_desc: Use image node_id 4 for calling a global function with example usage: import_tasks(tasks_dir, namespace) without return types