code: def create_workspace(args: Namespace) -> None:
      agent_user_group = _parse_agent_user_group_args(args)
      checkpoint_storage = _parse_checkpoint_storage_args(args)
  
      content = bindings.v1PostWorkspaceRequest(
          name=args.name,
          agentUserGroup=agent_user_group,
          checkpointStorageConfig=checkpoint_storage,
          defaultComputePool=args.default_compute_pool,
          defaultAuxPool=args.default_aux_pool,
      )
      w = bindings.post_PostWorkspace(
          cli.setup_session(args), body=content
      ).workspace
  
      if args.json:
          determined.cli.render.print_json(w.to_json())
      else:
          render_workspaces([w])
  
imports: import json
  from argparse import ArgumentError, Namespace
  from time import sleep
  from typing import Any, Dict, List, Optional, Sequence
  import determined.cli.render
  from determined import cli
  from determined.cli import render
  from determined.cli.user import AGENT_USER_GROUP_ARGS
  from determined.common import api, util
  from determined.common.api import authentication, bindings, errors
  from determined.common.declarative_argparse import Arg, Cmd
  from determined.common.experimental import workspace
label_desc: Use image node_id 9 for calling a global function with example usage: create_workspace(args) without return types