docstr: ivy.Container instance method variant of ivy.diff. This method
  simply wraps the function, and so the docstring for ivy.diff also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input container with array-like items.
  n
      The number of times values are differenced. If zero, the input is returned
      as-is.
  axis
      The axis along which the difference is taken, default is the last axis.
  prepend,append
      Values to prepend/append to x along given axis prior to performing the
      difference. Scalar values are expanded to arrays with length 1 in the
      direction of axis and the shape of the input array in along all other
      axes. Otherwise the dimension and shape must match x except along axis.
  out
      optional output container, for writing the result to.
  
  Returns
  -------
  ret
      Container including arrays with the n-th discrete difference along the
      given axis.
  
  Examples
  --------
  >>> x = ivy.Container(a=ivy.array([1, 2, 4, 7, 0]),
                        b=ivy.array([1, 2, 4, 7, 0]))
  >>> x.diff()
  {
      a: ivy.array([1, 2, 3, -7]),
      b: ivy.array([1, 2, 3, -7])
  }
code: def diff(
      self: ivy.Container,
      /,
      *,
      n: Union[int, ivy.Container] = 1,
      axis: Union[int, ivy.Container] = -1,
      prepend: Optional[
          Union[
              ivy.Array,
              ivy.NativeArray,
              int,
              list,
              tuple,
              ivy.Container,
          ]
      ] = None,
      append: Optional[
          Union[
              ivy.Array,
              ivy.NativeArray,
              int,
              list,
              tuple,
              ivy.Container,
          ]
      ] = None,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Container:
      """ivy.Container instance method variant of ivy.diff. This method
      simply wraps the function, and so the docstring for ivy.diff also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input container with array-like items.
      n
          The number of times values are differenced. If zero, the input is returned
          as-is.
      axis
          The axis along which the difference is taken, default is the last axis.
      prepend,append
          Values to prepend/append to x along given axis prior to performing the
          difference. Scalar values are expanded to arrays with length 1 in the
          direction of axis and the shape of the input array in along all other
          axes. Otherwise the dimension and shape must match x except along axis.
      out
          optional output container, for writing the result to.
  
      Returns
      -------
      ret
          Container including arrays with the n-th discrete difference along the
          given axis.
  
      Examples
      --------
      >>> x = ivy.Container(a=ivy.array([1, 2, 4, 7, 0]),
                            b=ivy.array([1, 2, 4, 7, 0]))
      >>> x.diff()
      {
          a: ivy.array([1, 2, 3, -7]),
          b: ivy.array([1, 2, 3, -7])
      }
      """
      return self.static_diff(
          self, n=n, axis=axis, prepend=prepend, append=append, out=out
      )
  
imports: from typing import Optional, Union, List, Dict, Tuple, Sequence
  from numbers import Number
  import ivy
  from ivy.data_classes.container.base import ContainerBase
label_desc: Use image node_id 28 for calling the _ContainerWithElementWiseExperimental obj's underlying member method code with example usage: obj.diff() and returns: self