docstr: ivy.Array instance method variant of ivy.heaviside. This method
  simply wraps the function, and so the docstring for ivy.heaviside also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array.
  x2
      values to use where x1 is zero.
  out
      optional output array, for writing the result to.
  
  Returns
  -------
  ret
      output array with element-wise Heaviside step function of x1.
      This is a scalar if both x1 and x2 are scalars.
  
  Examples
  --------
  >>> x1 = ivy.array([-1.5, 0, 2.0])
  >>> x2 = ivy.array([0.5])
  >>> ivy.heaviside(x1, x2)
  ivy.array([0.0000, 0.5000, 1.0000])
  
  >>> x1 = ivy.array([-1.5, 0, 2.0])
  >>> x2 = ivy.array([1.2, -2.0, 3.5])
  >>> ivy.heaviside(x1, x2)
  ivy.array([0., -2., 1.])
code: def heaviside(
      self: ivy.Array,
      x2: ivy.Array,
      /,
      *,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.heaviside. This method
      simply wraps the function, and so the docstring for ivy.heaviside also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array.
      x2
          values to use where x1 is zero.
      out
          optional output array, for writing the result to.
  
      Returns
      -------
      ret
          output array with element-wise Heaviside step function of x1.
          This is a scalar if both x1 and x2 are scalars.
  
      Examples
      --------
      >>> x1 = ivy.array([-1.5, 0, 2.0])
      >>> x2 = ivy.array([0.5])
      >>> ivy.heaviside(x1, x2)
      ivy.array([0.0000, 0.5000, 1.0000])
  
      >>> x1 = ivy.array([-1.5, 0, 2.0])
      >>> x2 = ivy.array([1.2, -2.0, 3.5])
      >>> ivy.heaviside(x1, x2)
      ivy.array([0., -2., 1.])
      """
      return ivy.heaviside(self._data, x2, out=out)
  
imports: import abc
  from typing import Optional, Union, Sequence, Tuple, List, Iterable, Callable, Literal, Any
  from numbers import Number
  import ivy
  from ivy import handle_view
label_desc: Use image node_id 2 for calling the _ArrayWithManipulationExperimental obj's underlying member method code with example usage: obj.heaviside() and returns: ivy