code: def _choice_values_for_flagdef(flagdef):
      if flagdef.choices:
          return _encode_choices(flagdef.choices)
      if flagdef.type == "boolean":
          return ["true", "false"]
      if flagdef.type in ("path", "existing-path"):
          return _cwd_filename_choices()
      return []
  
imports: import click
  from guild import click_util
  from .None import ac_support
  from .None import remote_support
label_desc: Use image node_id 15 for calling a global function with example usage: _choice_values_for_flagdef(flagdef) and returns: list, _encode_choices, list, _cwd_filename_choices