code: def list_workspaces(args: Namespace) -> None:
      session = setup_session(args)
      resp = bindings.get_ListWorkspacesBoundToRP(
          session, resourcePoolName=args.pool_name
      )
      workspace_names = ""
  
      if resp.workspaceIds:
          workspace_names = ", ".join(
              [
                  workspace.name
                  for workspace in bindings.get_GetWorkspaces(
                      session
                  ).workspaces
                  if workspace.id in set(resp.workspaceIds)
              ]
          )
  
      render.tabulate_or_csv(
          headers=["resource pool", "workspaces"],
          values=[[args.pool_name, workspace_names]],
          as_csv=False,
      )
      return
  
file_path: determined/harness/determined/cli/resource_pool.py
imports: from argparse import ONE_OR_MORE, Namespace
  from typing import Any, List
  from determined.cli import render, setup_session
  from determined.common.api import authentication, bindings
  from determined.common.declarative_argparse import Arg, Cmd
label_desc: Use image node_id 4 for calling a global function with example usage: list_workspaces(args) without return types