code: def make_task_info_as_table(
      task: TaskOnKart, ignore_task_names: Optional[List[str]] = None
  ):
      """Return a table containing information about dependent tasks.
  
      Parameters
      ----------
      - task: TaskOnKart
          Root task.
      - ignore_task_names: Optional[List[str]]
          List of task names to ignore.
      Returns
      -------
      - task_info_table : pandas.DataFrame
          Formatted task dependency table.
      """
  
      task_info = make_task_info_tree(
          task, ignore_task_names=ignore_task_names
      )
      task_info_table = pd.DataFrame(
          make_tree_info_table_list(
              task_info=task_info, visited_tasks=set()
          )
      )
  
      return task_info_table
  
file_path: gokart/gokart/tree/task_info.py
imports: import os
  from typing import List, Optional
  import pandas
  from gokart.target import make_target
  from gokart.task import TaskOnKart
  from gokart.tree.task_info_formatter import make_task_info_tree, make_tree_info, make_tree_info_table_list
label_desc: Use image node_id 2 for calling a global function with example usage: make_task_info_as_table(task, ignore_task_names) and returns: task_info_table