code: def _task_list_json(master_url: str) -> Dict[str, Dict[str, Any]]:
      command = ["det", "-m", master_url, "task", "list", "--json"]
      tasks_data: Dict[str, Dict[str, Any]] = json.loads(
          subprocess.check_output(command).decode()
      )
      return tasks_data
  
imports: import json
  import subprocess
  import time
  import uuid
  from pathlib import Path
  from typing import Any, Dict, Iterator, Tuple
  import pytest
  from determined.common.api.bindings import experimentv1State
  from tests import config
  from tests import experiment
  from .managed_cluster import ManagedCluster
  from .utils import assert_command_succeeded, get_command_info, run_command, wait_for_command_state
label_desc: Use image node_id 5 for calling a global function with example usage: _task_list_json(master_url) and returns: tasks_data