code: def print_json(data: Union[str, Any]) -> None:
      """
      Print JSON data in a human-readable format.
      """
      DEFAULT_INDENT = "  "
      try:
          if isinstance(data, str):
              data = json.loads(data)
          if _coloring_enabled():
              render_colorized_json(
                  data,
                  sys.stdout,
                  indent=DEFAULT_INDENT,
                  sort_keys=True,
              )
              return
          formatted_json = det_util.json_encode(
              data, sort_keys=True, indent=DEFAULT_INDENT
          )
          print(formatted_json)
      except json.decoder.JSONDecodeError:
          print(data)
  
imports: import csv
  import inspect
  import json
  import os
  import pathlib
  import sys
  from datetime import timezone
  from typing import Any, Dict, Iterable, List, Optional, Sequence, TextIO, Union
  import dateutil.parser
  import tabulate
  import termcolor
  from determined import util
  from determined.common import util
  from determined.experimental import Model, Project
label_desc: Use image node_id 14 for calling a global function with example usage: print_json(data) without return types