code: def get_master(args: Namespace) -> None:
      resp = bindings.get_GetMaster(cli.setup_session(args))
      if args.json:
          render.print_json(resp.to_json())
      else:
          print(
              util.yaml_safe_dump(
                  resp.to_json(), default_flow_style=False
              )
          )
  
file_path: determined/harness/determined/cli/master.py
imports: import argparse
  from argparse import Namespace
  from typing import Any, List, Optional
  from determined import cli
  from determined.cli import render
  from determined.common import util
  from determined.common.api import authentication, bindings
  from determined.common.declarative_argparse import Arg, Cmd, Group
label_desc: Use image node_id 3 for calling a global function with example usage: get_master(args) without return types