code: def args_to_new_backend(
      *args: Iterable[Any],
      native: bool = True,
      shallow: bool = True,
      include_derived: Optional[Dict[str, bool]] = None,
      cont_inplace: bool = False,
      to_ignore: Optional[Union[type, Tuple[type]]] = None,
      **kwargs: Dict[str, Any],
  ) -> Tuple[Iterable[Any], Dict[str, Any]]:
      """Return args and keyword args in the new current backend framework for
      all nested ivy.Array, ivy.NativeArray or NativeVariable instances.
  
      Parameters
      ----------
      args
          The positional arguments to check
      native
          Whether to return the new array as a ivy.NativeArray, NativeVariable
          or an ivy.Array. Default is ``True``.
      include_derived
          Whether to also recursive for classes derived from tuple, list and dict.
          Default is ``False``.
      cont_inplace
          Whether to update containers in place.
          Default is ``False``
      to_ignore
          Types to ignore when deciding whether to go deeper into the nest or not
      shallow
          Whether to inplace update the input nest or not
          Only works if nest is a mutable type. Default is ``True``.
      kwargs
          The key-word arguments to check
  
      Returns
      -------
      ret
          The same arguments, with any nested array instances converted
          to the new backend.
      """
      new_args = ivy.nested_map(
          lambda x: _to_new_backend(
              x,
              native=native,
              inplace=cont_inplace,
              to_ignore=to_ignore,
          ),
          args,
          include_derived,
          shallow=shallow,
      )
      new_kwargs = ivy.nested_map(
          lambda x: _to_new_backend(
              x,
              native=native,
              inplace=cont_inplace,
              to_ignore=to_ignore,
          ),
          kwargs,
          include_derived,
          shallow=shallow,
      )
      return new_args, new_kwargs
  
file_path: ivy/ivy/data_classes/array/conversions.py
imports: import numpy
  from typing import Any, Union, Tuple, Dict, Iterable, Optional
  import ivy
label_desc: Use image node_id 10 for calling a global function with example usage: args_to_new_backend() and returns: new_args,  new_kwargs