code: def _is_integer_like_by_dtype(dt):
      """Helper returning True if dtype.is_integer or is `bool`."""
      if not _is_known_dtype(dt):
          raise TypeError(
              "Unrecognized dtype: {}".format(dtype_util.name(dt))
          )
      return (
          dtype_util.is_integer(dt)
          or dtype_util.base_dtype(dt) == tf.bool
      )
  
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 26 for calling a global function with example usage: _is_integer_like_by_dtype(dt) and returns: unknown