code: def is_distribution_instance(d):
      """Standardizes our definition of being a `tfd.Distribution`."""
      return (
          not tf_inspect.isclass(d)
          and hasattr(d, "log_prob")
          and hasattr(d, "sample")
      )
  
imports: import functools
  import hashlib
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import reparameterization
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 42 for calling a global function with example usage: is_distribution_instance(d) and returns: unknown