code: def list_tasks(args: Namespace) -> None:
      r = bindings.get_GetTasks(cli.setup_session(args))
      tasks = r.allocationIdToSummary or {}
      render_tasks(args, tasks)
  
file_path: determined/harness/determined/cli/task.py
imports: from argparse import Namespace
  from functools import partial
  from typing import Any, Dict, List, Union, cast
  from termcolor import colored
  from determined import cli
  from determined.cli import ntsc, render
  from determined.common import api
  from determined.common.api import authentication, bindings
  from determined.common.api.bindings import v1AllocationSummary
  from determined.common.declarative_argparse import Arg, Cmd, Group
label_desc: Use image node_id 2 for calling a global function with example usage: list_tasks(args) without return types