code: def _cmd_flag_for_name(name, cmd_flags, force_flag_args):
      cmd_flag = cmd_flags.get(name)
      if cmd_flag:
          return cmd_flag
      if force_flag_args:
          return CmdFlag()
      return None
  
imports: import logging
  import pprint
  from guild import flag_util
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 7 for calling a global function with example usage: _cmd_flag_for_name(name, cmd_flags, force_flag_args) and returns: None, cmd_flag, CmdFlag