code: def _with_default_bijector(distribution, bijector):
      dist = distribution.copy()
      # TODO(b/198690871): Add a proper mechanism to override default bijectors.
      dist._default_event_space_bijector = (
          types.MethodType(  # pylint: disable=protected-access
              lambda self: bijector, dist
          )
      )
      return dist
  
imports: import collections
  import types
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import joint_distribution_auto_batched
  from tensorflow_probability.python.distributions import sample
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.sts.internal import util
  from tensorflow.python.util import deprecation
label_desc: Use image node_id 3 for calling a global function with example usage: _with_default_bijector(distribution, bijector) and returns: dist