code: def edit(parsed_args: Namespace) -> None:
      session = setup_session(parsed_args)
      det = Determined._from_session(session)
      user_obj = det.get_user_by_name(parsed_args.target_user)
      changes = []
      patch_user = bindings.v1PatchUser()
      if parsed_args.display_name is not None:
          patch_user.displayName = parsed_args.display_name
          changes.append("Display Name")
  
      if parsed_args.remote is not None:
          patch_user.remote = parsed_args.remote
          changes.append("Remote")
  
      if parsed_args.activate is not None:
          patch_user.active = parsed_args.activate
          changes.append("Active")
  
      if parsed_args.username is not None:
          patch_user.username = parsed_args.username
          changes.append("Username")
  
      if parsed_args.admin is not None:
          patch_user.admin = parsed_args.admin
          changes.append("Admin")
  
      if len(changes) > 0:
          bindings.patch_PatchUser(
              session=session, body=patch_user, userId=user_obj.user_id
          )
          print(
              "Changes made to the following fields: "
              + ", ".join(changes)
          )
      else:
          raise errors.CliError(
              "No field provided. Use 'det user edit -h' for usage."
          )
  
imports: import getpass
  from argparse import Namespace
  from collections import namedtuple
  from typing import Any, List
  from determined.cli import errors, login_sdk_client, render, setup_session
  from determined.common import api
  from determined.common.api import authentication, bindings, certs
  from determined.common.declarative_argparse import Arg, Cmd, string_to_bool
  from determined.experimental import client
  from determined.experimental.client import Determined
label_desc: Use image node_id 11 for calling a global function with example usage: edit(parsed_args) without return types