code: def reverse(data, axis):
      """Reverses the order of elements along given axis while preserving array shape.
  
      Parameters
      ----------
      data : relay.Expr
          The input data to the operator.
  
      axis: int
          The axis along which to reverse elements.
  
      Returns
      -------
      ret : relay.Expr
          The computed result.
  
      Examples
      --------
      .. code-block:: python
  
          x = [[1., 2.], [3., 4.]]
          relay.reverse(x, axis=0) = [[3., 4.], [1., 2.]]
  
          relay.reverse(x, axis=1) = [[2., 1.], [4., 3.]]
      """
      return _make.reverse(data, axis)
  
imports: from ...tir import expr
  from ..expr import Constant, Expr, Tuple, TupleWrapper, const
  from .None import _make
  from .dyn import _make
  from .tensor import shape_of
label_desc: Use image node_id 20 for calling a global function with example usage: reverse(data, axis) and returns: _make