code: def _set_arg_scope_defaults(defaults):
      """Sets arg scope defaults for all items present in defaults.
  
      Args:
        defaults: dictionary/list of pairs, containing a mapping from
        function to a dictionary of default args.
  
      Yields:
        context manager where all defaults are set.
      """
      if hasattr(defaults, "items"):
          items = list(defaults.items())
      else:
          items = defaults
      if not items:
          yield
      else:
          func, default_arg = items[0]
          with slim.arg_scope(func, **default_arg):
              with _set_arg_scope_defaults(items[1:]):
                  yield
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import contextlib
  import copy
  import os
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: _set_arg_scope_defaults(defaults) without return types