docstr: ivy.Container static method variant of ivy.frombuffer. This method
  simply wraps the function, and so the docstring for ivy.frombuffer also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  buffer
      An object that exposes the buffer interface.
  dtype
      Data-type of the returned array; default: float.
  count
      Number of items to read. -1 means all data in the buffer.
  offset
      Start reading the buffer from this offset (in bytes); default: 0.
  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``.
  
  Returns
  -------
  out
      1-dimensional array.
  
  Examples
  --------
  With :class:`ivy.Container` inputs:
  
  >>> x = ivy.Container(
  ...     a = b'\x00\x00\x00\x00\x00\x00\xf0?',
  ...     b = b'\x00\x00\x00\x00\x00\x00\xf0?\x00\x00\x00\x00\x00\x00\x00@'
  ... )
  >>> y = ivy.Container.static_frombuffer(x)
  >>> print(y)
  {
      a: ivy.array([1.]),
      b: ivy.array([1., 2.])
  }
  
  >>> x = ivy.Container(
  ...     a = b'\x01\x02\x03\x04',
  ...     b = b'\x05\x04\x03\x03\x02'
  ... )
  >>> y = ivy.Container.static_frombuffer(x, dtype=ivy.int8, count=3, offset=1)
  >>> print(y)
  {
      a: ivy.array([2, 3, 4]),
      b: ivy.array([4, 3, 3])
  }
docstr_tok: ["ivy.Container","static","method","variant","of","ivy.frombuffer",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.frombuffer","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","buffer","An","object","that","exposes","the","buffer","interface",".","dtype","Data-type","of","the","returned","array",";","default",":","float",".","count","Number","of","items","to","read",".","-1","means","all","data","in","the","buffer",".","offset","Start","reading","the","buffer","from","this","offset","(","in","bytes",")",";","default",":","0.","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","``",".","Returns","--","--","--","-","out","1-dimensional","array",".","Examples","--","--","--","--","With",":","class",":","`","ivy.Container","`","inputs",":",">",">",">","x","=","ivy.Container","(","...","a","=","b'\\x00\\x00\\x00\\x00\\x00\\x00\\xf0","?","'",",","...","b","=","b'\\x00\\x00\\x00\\x00\\x00\\x00\\xf0","?","\\x00\\x00\\x00\\x00\\x00\\x00\\x00","@","'","...",")",">",">",">","y","=","ivy.Container.static_frombuffer","(","x",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","1",".","]",")",",","b",":","ivy.array","(","[","1.",",","2",".","]",")","}",">",">",">","x","=","ivy.Container","(","...","a","=","b'\\x01\\x02\\x03\\x04","'",",","...","b","=","b'\\x05\\x04\\x03\\x03\\x02'","...",")",">",">",">","y","=","ivy.Container.static_frombuffer","(","x",",","dtype=ivy.int8",",","count=3",",","offset=1",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","2",",","3",",","4","]",")",",","b",":","ivy.array","(","[","4",",","3",",","3","]",")","}"]
code: def static_frombuffer(
      buffer: ivy.Container,
      dtype: Optional[
          Union[ivy.Dtype, ivy.NativeDtype, ivy.Container]
      ] = float,
      count: Optional[Union[int, ivy.Container]] = -1,
      offset: Optional[Union[int, ivy.Container]] = 0,
      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,
  ) -> ivy.Container:
      r"""ivy.Container static method variant of ivy.frombuffer. This method
      simply wraps the function, and so the docstring for ivy.frombuffer also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      buffer
          An object that exposes the buffer interface.
      dtype
          Data-type of the returned array; default: float.
      count
          Number of items to read. -1 means all data in the buffer.
      offset
          Start reading the buffer from this offset (in bytes); default: 0.
      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``.
  
      Returns
      -------
      out
          1-dimensional array.
  
      Examples
      --------
      With :class:`ivy.Container` inputs:
  
      >>> x = ivy.Container(
      ...     a = b'\x00\x00\x00\x00\x00\x00\xf0?',
      ...     b = b'\x00\x00\x00\x00\x00\x00\xf0?\x00\x00\x00\x00\x00\x00\x00@'
      ... )
      >>> y = ivy.Container.static_frombuffer(x)
      >>> print(y)
      {
          a: ivy.array([1.]),
          b: ivy.array([1., 2.])
      }
  
      >>> x = ivy.Container(
      ...     a = b'\x01\x02\x03\x04',
      ...     b = b'\x05\x04\x03\x03\x02'
      ... )
      >>> y = ivy.Container.static_frombuffer(x, dtype=ivy.int8, count=3, offset=1)
      >>> print(y)
      {
          a: ivy.array([2, 3, 4]),
          b: ivy.array([4, 3, 3])
      }
      """
      return ContainerBase.cont_multi_map_in_function(
          "frombuffer",
          buffer,
          dtype=dtype,
          count=count,
          offset=offset,
          key_chains=key_chains,
          to_apply=to_apply,
          prune_unapplied=prune_unapplied,
          map_sequences=map_sequences,
      )
  
imports: from typing import Optional, Union, List, Tuple, Dict, Sequence
  from numbers import Number
  import numpy
  import ivy
  from ivy.data_classes.container.base import ContainerBase
label_desc: Use image node_id 35 for calling the _ContainerWithCreation obj's underlying member method code with example usage: obj.static_frombuffer(buffer, dtype, count, offset, key_chains, to_apply, prune_unapplied, map_sequences) and returns: ContainerBase