code: def _has_args(fn):
      """Returns `True` if the function takes an argument."""
      argspec = tf_inspect.getfullargspec(fn)
      return (
          bool(argspec.args)
          or bool(argspec.kwonlyargs)
          or argspec.varargs is not None
          or argspec.varkw is not None
      )
  
file_path: probability/tensorflow_probability/python/math/gradient.py
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 10 for calling a global function with example usage: _has_args(fn) and returns: unknown