docstr: ivy.Container static 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
  ----------
  x
      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.
  key_chains
      The key-chains to apply or not apply the method to. Default is ``None``.
  to_apply
      If True, the method will be applied to key_chains, otherwise key_chains
      will be skipped. Default is ``True``.
  prune_unapplied
      Whether to prune key_chains for which the function was not applied.
      Default is ``False``.
  map_sequences
      Whether to also map method to sequences (lists, tuples).
      Default is ``False``.
  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]))
  >>> ivy.Container.static_diff(x)
  {
      a: ivy.array([ 1,  2,  3, -7]),
      b: ivy.array([ 1,  2,  3, -7])
  }
code: def static_diff(
      x: Union[ivy.Container, ivy.Array, ivy.NativeArray],
      /,
      *,
      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,
      key_chains: Optional[
          Union[List[str], Dict[str, str], ivy.Container]
      ] = None,
      to_apply: Union[bool, ivy.Container] = True,
      prune_unapplied: Union[bool, ivy.Container] = False,
      map_sequences: Union[bool, ivy.Container] = False,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Container:
      """ivy.Container static 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
      ----------
      x
          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.
      key_chains
          The key-chains to apply or not apply the method to. Default is ``None``.
      to_apply
          If True, the method will be applied to key_chains, otherwise key_chains
          will be skipped. Default is ``True``.
      prune_unapplied
          Whether to prune key_chains for which the function was not applied.
          Default is ``False``.
      map_sequences
          Whether to also map method to sequences (lists, tuples).
          Default is ``False``.
      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]))
      >>> ivy.Container.static_diff(x)
      {
          a: ivy.array([ 1,  2,  3, -7]),
          b: ivy.array([ 1,  2,  3, -7])
      }
      """
      return ContainerBase.cont_multi_map_in_function(
          "diff",
          x,
          n=n,
          axis=axis,
          prepend=prepend,
          append=append,
          key_chains=key_chains,
          to_apply=to_apply,
          prune_unapplied=prune_unapplied,
          map_sequences=map_sequences,
          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 27 for calling the _ContainerWithElementWiseExperimental obj's underlying member method code with example usage: obj.static_diff() and returns: ContainerBase