code: def make_assign_req(
      session: api.Session,
      args: Namespace,
  ) -> Tuple[
      List[bindings.v1UserRoleAssignment],
      List[bindings.v1GroupRoleAssignment],
  ]:
      """
      A helper for assign_role and unassign_role, which take the same command line flags.
      """
      if args.username_to_assign:
          user_assign = api.create_user_assignment_request(
              session,
              user=args.username_to_assign,
              role=args.role_name,
              workspace=args.workspace_name,
          )
      else:
          user_assign = []
  
      if args.group_name_to_assign:
          group_assign = api.create_group_assignment_request(
              session,
              group=args.group_name_to_assign,
              role=args.role_name,
              workspace=args.workspace_name,
          )
      else:
          group_assign = []
  
      return user_assign, group_assign
  
file_path: determined/harness/determined/cli/rbac.py
imports: from argparse import Namespace
  from collections import namedtuple
  from typing import Any, Dict, List, Set, Tuple
  import determined.cli.render
  from determined.cli import default_pagination_args, render, require_feature_flag, setup_session
  from determined.common import api
  from determined.common.api import authentication, bindings
  from determined.common.declarative_argparse import Arg, Cmd
label_desc: Use image node_id 7 for calling a global function with example usage: make_assign_req(session, args) and returns: user_assign,  group_assign