docstr: ivy.Container static method variant of ivy.optional_get_element.
  This method simply wraps the function, and so the docstring for
  ivy.optional_get_element also applies to this method with minimal
  changes.
  
  Parameters
  ----------
  x
      container with array inputs.
  key_chains
      The keychains 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 with arrays flattened at leaves.
docstr_tok: ["ivy.Container","static","method","variant","of","ivy.optional_get_element",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.optional_get_element","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","x","container","with","array","inputs",".","key_chains","The","keychains","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","with","arrays","flattened","at","leaves","."]
code: def static_optional_get_element(
      x: Optional[Union[ivy.Array, ivy.Container]] = None,
      /,
      *,
      key_chains: Optional[Union[List[str], Dict[str, str]]] = None,
      to_apply: bool = True,
      prune_unapplied: bool = False,
      map_sequences: bool = False,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Container:
      """ivy.Container static method variant of ivy.optional_get_element.
      This method simply wraps the function, and so the docstring for
      ivy.optional_get_element also applies to this method with minimal
      changes.
  
      Parameters
      ----------
      x
          container with array inputs.
      key_chains
          The keychains 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 with arrays flattened at leaves.
      """
      return ContainerBase.cont_multi_map_in_function(
          "optional_get_element",
          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, Dict, List
  import ivy
  from ivy.data_classes.container.base import ContainerBase
label_desc: Use image node_id 1 for calling the _ContainerWithUtilityExperimental obj's underlying member method code with example usage: obj.static_optional_get_element() and returns: ContainerBase