code: def _get_output(task: TaskOnKart) -> Any:
      output = task.output()
      if isinstance(output, list) or isinstance(output, tuple):
          return [t.load() for t in output]
      if isinstance(output, dict):
          return {k: t.load() for k, t in output.items()}
      return output.load()
  
file_path: gokart/gokart/build.py
imports: import logging
  from logging import getLogger
  from typing import Any, Optional
  import luigi
  import gokart
  from gokart.task import TaskOnKart
label_desc: Use image node_id 1 for calling a global function with example usage: _get_output(task) and returns: output, unknown, unknown