code: def make_task_info_as_tree_str(
      task: TaskOnKart,
      details: bool = False,
      abbr: bool = True,
      ignore_task_names: Optional[List[str]] = None,
  ):
      """
      Return a string representation of the tasks, their statuses/parameters in a dependency tree format
  
      Parameters
      ----------
      - task: TaskOnKart
          Root task.
      - details: bool
          Whether or not to output details.
      - abbr: bool
          Whether or not to simplify tasks information that has already appeared.
      - ignore_task_names: Optional[List[str]]
          List of task names to ignore.
      Returns
      -------
      - tree_info : str
          Formatted task dependency tree.
      """
      task_info = make_task_info_tree(
          task, ignore_task_names=ignore_task_names
      )
      result = make_tree_info(
          task_info=task_info,
          indent="",
          last=True,
          details=details,
          abbr=abbr,
          visited_tasks=set(),
      )
      return result
  
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 1 for calling a global function with example usage: make_task_info_as_tree_str(task, details, abbr, ignore_task_names) and returns: result