code: def render_checkpoint(
      checkpoint: experimental.Checkpoint, path: Optional[str] = None
  ) -> None:
      if path:
          print("Local checkpoint path:")
          print(path, "\n")
  
      assert checkpoint.metadata
      # Print information about the downloaded step/checkpoint.
      table = [
          [
              "Experiment ID",
              checkpoint.training.experiment_id
              if checkpoint.training
              else None,
          ],
          [
              "Trial ID",
              checkpoint.training.trial_id
              if checkpoint.training
              else None,
          ],
          [
              "Steps Completed",
              checkpoint.metadata.get("steps_completed"),
          ],
          ["Report Time", render.format_time(checkpoint.report_time)],
          ["Checkpoint UUID", checkpoint.uuid],
          [
              "Validation Metrics",
              (
                  json.dumps(
                      checkpoint.training.validation_metrics, indent=4
                  )
                  if checkpoint.training
                  else None
              ),
          ],
          ["Metadata", json.dumps(checkpoint.metadata or {}, indent=4)],
      ]
  
      headers, values = zip(*table)  # type: ignore
  
      render.tabulate_or_csv(headers, [values], False)
  
file_path: determined/harness/determined/cli/checkpoint.py
imports: import argparse
  import json
  from typing import Any, List, Optional
  from determined import cli, errors, experimental
  from determined.cli import render
  from determined.common.api import authentication, bindings
  from determined.common.declarative_argparse import Arg, Cmd
  from determined.experimental.client import DownloadMode
label_desc: Use image node_id 1 for calling a global function with example usage: render_checkpoint(checkpoint, path) without return types