code: def _flags_to_import(opdef, all_marker):
      if opdef.flags_import in (True, "all"):
          return all_marker
      if opdef.flags_import is None:
          # If flags-import is not configured, import all defined flags.
          return {flag.name for flag in opdef.flags}
      if isinstance(opdef.flags_import, list):
          return set(opdef.flags_import)
      return set([opdef.flags_import])
  
imports: import logging
  import os
  from guild import cli
  from guild import guildfile
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 5 for calling a global function with example usage: _flags_to_import(opdef, all_marker) and returns: set, all_marker, unknown, set