docstr: ivy.Container instance method variant of ivy.max. This method simply
  wraps the function, and so the docstring for ivy.max also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      Input container. Should have a real-valued data type.
  axis
      axis or axes along which max values must be computed.
      By default, the maximum value must be computed over
      the entire array. If a tuple of integers, maximum values
      must be computed over multiple axes. Default: ``None``.
  keepdims
      optional boolean, if ``True``, the reduced axes (dimensions)
      must be included in the result as singleton dimensions,
      and, accordingly, the result must be compatible with the
      input array (see :ref:`broadcasting`). Otherwise, if ``False``,
      the reduced axes (dimensions) must not be included in the
      result. Default: ``False``.
  out
      optional output array, for writing the result to.
  
  Returns
  -------
  ret
      if the maximum value was computed over the entire array, a zero-dimensional
      array containing the maximum value; otherwise, a non-zero-dimensional array
      containing the maximum values. The returned array must have the same
      data type as ``x``.
  
  Examples
  --------
  With :class:`ivy.Container` input:
  
  >> > x = ivy.Container(a=ivy.array([1, 2, 3]),                                b=ivy.array([2, 3, 4]))
  >> > z = x.max()
  >> > print(z)
  {
      a: ivy.array(3),
      b: ivy.array(4)
  }
  >>> x = ivy.Container(a=ivy.array([[1, 2, 3],[-1,0,2]]),
  ...                   b=ivy.array([[2, 3, 4], [0, 1, 2]]))
  >>> z = x.max(axis=1)
  >>> print(z)
  {
      a: ivy.array([3, 2]),
      b: ivy.array([4, 2])
  }
docstr_tok: ["ivy.Container","instance","method","variant","of","ivy.max",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.max","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","Input","container",".","Should","have","a","real-valued","data","type",".","axis","axis","or","axes","along","which","max","values","must","be","computed",".","By","default",",","the","maximum","value","must","be","computed","over","the","entire","array",".","If","a","tuple","of","integers",",","maximum","values","must","be","computed","over","multiple","axes",".","Default",":","``","None","``",".","keepdims","optional","boolean",",","if","``","True","``",",","the","reduced","axes","(","dimensions",")","must","be","included","in","the","result","as","singleton","dimensions",",","and",",","accordingly",",","the","result","must","be","compatible","with","the","input","array","(","see",":","ref",":","`","broadcasting","`",")",".","Otherwise",",","if","``","False","``",",","the","reduced","axes","(","dimensions",")","must","not","be","included","in","the","result",".","Default",":","``","False","``",".","out","optional","output","array",",","for","writing","the","result","to",".","Returns","--","--","--","-","ret","if","the","maximum","value","was","computed","over","the","entire","array",",","a","zero-dimensional","array","containing","the","maximum","value",";","otherwise",",","a","non-zero-dimensional","array","containing","the","maximum","values",".","The","returned","array","must","have","the","same","data","type","as","``","x","``",".","Examples","--","--","--","--","With",":","class",":","`","ivy.Container","`","input",":",">",">",">","x","=","ivy.Container","(","a=ivy.array","(","[","1",",","2",",","3","]",")",",","b=ivy.array","(","[","2",",","3",",","4","]",")",")",">",">",">","z","=","x.max","(",")",">",">",">","print","(","z",")","{","a",":","ivy.array","(","3",")",",","b",":","ivy.array","(","4",")","}",">",">",">","x","=","ivy.Container","(","a=ivy.array","(","[","[","1",",","2",",","3","]",",","[","-1,0,2","]","]",")",",","...","b=ivy.array","(","[","[","2",",","3",",","4","]",",","[","0",",","1",",","2","]","]",")",")",">",">",">","z","=","x.max","(","axis=1",")",">",">",">","print","(","z",")","{","a",":","ivy.array","(","[","3",",","2","]",")",",","b",":","ivy.array","(","[","4",",","2","]",")","}"]
code: def max(
      self: ivy.Container,
      /,
      *,
      axis: Optional[Union[int, Sequence[int], ivy.Container]] = None,
      keepdims: Union[bool, ivy.Container] = False,
      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 instance method variant of ivy.max. This method simply
          wraps the function, and so the docstring for ivy.max also applies to
          this method with minimal changes.
  
          Parameters
          ----------
          self
              Input container. Should have a real-valued data type.
          axis
              axis or axes along which max values must be computed.
              By default, the maximum value must be computed over
              the entire array. If a tuple of integers, maximum values
              must be computed over multiple axes. Default: ``None``.
          keepdims
              optional boolean, if ``True``, the reduced axes (dimensions)
              must be included in the result as singleton dimensions,
              and, accordingly, the result must be compatible with the
              input array (see :ref:`broadcasting`). Otherwise, if ``False``,
              the reduced axes (dimensions) must not be included in the
              result. Default: ``False``.
          out
              optional output array, for writing the result to.
  
          Returns
          -------
          ret
              if the maximum value was computed over the entire array, a zero-dimensional
              array containing the maximum value; otherwise, a non-zero-dimensional array
              containing the maximum values. The returned array must have the same
              data type as ``x``.
  
          Examples
          --------
          With :class:`ivy.Container` input:
  
          >> > x = ivy.Container(a=ivy.array([1, 2, 3]), \
                                 b=ivy.array([2, 3, 4]))
          >> > z = x.max()
          >> > print(z)
          {
              a: ivy.array(3),
              b: ivy.array(4)
          }
          >>> x = ivy.Container(a=ivy.array([[1, 2, 3],[-1,0,2]]),
          ...                   b=ivy.array([[2, 3, 4], [0, 1, 2]]))
          >>> z = x.max(axis=1)
          >>> print(z)
          {
              a: ivy.array([3, 2]),
              b: ivy.array([4, 2])
          }
          """
      return self.cont_handle_inplace(
          self.cont_map(
              lambda x_, _: (
                  ivy.max(x_, axis=axis, keepdims=keepdims)
                  if ivy.is_array(x_)
                  else x_
              ),
              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, Sequence
  import ivy
  from ivy.data_classes.container.base import ContainerBase
label_desc: Use image node_id 3 for calling the _ContainerWithStatistical obj's underlying member method code with example usage: obj.max() and returns: self