code: def _promote_to_default_dtype(x):
      if x.dtype.kind == "b":
          return x
      elif x.dtype.kind == "i":
          return x.astype(jnp.int_)
      elif x.dtype.kind == "u":
          return x.astype(jnp.uint)
      elif x.dtype.kind == "f":
          return x.astype(jnp.float_)
      elif x.dtype.kind == "c":
          return x.astype(jnp.complex_)
      else:
          raise ValueError(f"Unrecognized {x.dtype=}")
  
file_path: jax/jax/experimental/array_api/_data_type_functions.py
imports: import functools
  from typing import NamedTuple
  import jax
  import jax.numpy
  from jax.experimental.array_api._dtypes import bool, int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64, complex64, complex128
label_desc: Use image node_id 10 for calling a global function with example usage: _promote_to_default_dtype(x) and returns: x, x, x, x, x