code: def _pre_set_default_dtype(as_dtype):
      def set_default_dtype(value):
          """Set backend default dtype.
  
          Parameters
          ----------
          value : str
              Possible values are "float32" as "float64".
          """
          _config.DEFAULT_DTYPE = as_dtype(value)
          _config.DEFAULT_COMPLEX_DTYPE = as_dtype(
              _MAP_FLOAT_TO_COMPLEX[value]
          )
  
          _update_default_dtypes()
  
          return get_default_dtype()
  
      return set_default_dtype
  
file_path: geomstats/geomstats/_backend/_dtype_utils.py
imports: import functools
  import inspect
  import types
  from geomstats._backend import _backend_config
label_desc: Use image node_id 8 for calling a global function with example usage: _pre_set_default_dtype(as_dtype) and returns: set_default_dtype, get_default_dtype