code: def _get_nondefault_flags_as_dict():
      """Returns the nondefault flags as a dict from flag name to value."""
      nondefault_flags = {}
      for flag_name in flags.FLAGS:
          flag_value = getattr(flags.FLAGS, flag_name)
          if (
              flag_name != flags.FLAGS[flag_name].short_name
              and flag_value != flags.FLAGS[flag_name].default
          ):
              nondefault_flags[flag_name] = flag_value
      return nondefault_flags
  
file_path: autodist/examples/benchmark/utils/flags/core.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  from six.moves import shlex_quote
  from absl import app
  from absl import flags
  from utils.flags import _base
  from utils.flags import _benchmark
  from utils.flags import _conventions
  from utils.flags import _device
  from utils.flags import _distribution
  from utils.flags import _misc
  from utils.flags import _performance
label_desc: Use image node_id 4 for calling a global function with example usage: _get_nondefault_flags_as_dict() and returns: nondefault_flags