code: def reset_state():
      """
      Returns a context manager that resets all state once exited.
  
      See Also
      --------
      set_state
          Context manager that sets the backend state.
      get_state
          Gets a state to be set by this context manager.
      """
      with set_state(get_state()):
          yield
  
imports: import typing
  import types
  import inspect
  import functools
  from .None import _uarray
  import copyreg
  import pickle
  import contextlib
  from ._uarray import BackendNotImplementedError, _Function, _SkipBackendContext, _SetBackendContext, _BackendState
label_desc: Use image node_id 7 for calling a global function with example usage: reset_state() without return types