code: def _reverse(
      tensor, axis, name=None
  ):  # pylint: disable=unused-argument
      if np.array(axis).ndim == 0:
          return np.flip(tensor, axis)
      for ax in axis:
          tensor = np.flip(tensor, ax)
      return tensor
  
imports: import functools
  import numpy
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy import ops
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import einsum
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import norm
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import tensordot
label_desc: Use image node_id 12 for calling a global function with example usage: _reverse(tensor, axis, name) and returns: tensor, np