code: def is_module(x):
      """Returns `True` when input is a `tf.Module`, otherwise `False`."""
      return isinstance(x, tf.Module)
  
file_path: probability/tensorflow_probability/python/internal/tensor_util.py
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 6 for calling a global function with example usage: is_module(x) and returns: isinstance