code: def create_task_dict(
      task_config_dict: dict, verbose: bool = True
  ) -> Dict[str, Task]:
      """Make map of task name to task instances from map of task name to task config file paths.
  
      Args:
          task_config_dict (Dict): map from task name to task config filepath.
          verbose (bool): True to print task config info.
  
      Returns:
          Dict mapping from task name to task instance.
  
      """
      task_dict = {}
      for task_name, task_config_path in task_config_dict.items():
          task = create_task_from_config_path(
              config_path=task_config_path, verbose=False
          )
          if not task.name == task_name:
              warnings.warn(
                  "task {} from {} has conflicting names: {}/{}. Using {}".format(
                      task_name,
                      task_config_path,
                      task_name,
                      task.name,
                      task_name,
                  )
              )
              task.name = task_name
          task_dict[task_name] = task
      if verbose:
          print("Creating Tasks:")
          for task_name, task_config_path in task_config_dict.items():
              task_class = task_dict[task_name].__class__.__name__
              print(
                  f"    {task_name} ({task_class}): {task_config_path}"
              )
      return task_dict
  
imports: import warnings
  from dataclasses import dataclass
  from typing import Dict, List, Optional
  import jiant.proj.main.components.task_sampler
  import jiant.shared.caching
  from jiant.tasks.core import Task
  from jiant.tasks.retrieval import create_task_from_config_path
  import jiant.utils.python.io
  from jiant.utils.python.datastructures import ExtendedDataClassMixin
label_desc: Use image node_id 1 for calling a global function with example usage: create_task_dict(task_config_dict, verbose) and returns: task_dict