code: def _expand_as_kwargs(args):
      # Returns `True` if `args` should be expanded as `**args`.
      return isinstance(
          args, collections.abc.Mapping
      ) and not _force_leaf(args)
  
imports: import collections
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow.python.util import nest
label_desc: Use image node_id 8 for calling a global function with example usage: _expand_as_kwargs(args) and returns: unknown