code: def promote_types(type1, type2, /):
      if isinstance(type1, np_dtype):
          type1 = type1._ivy_dtype
      if isinstance(type2, np_dtype):
          type2 = type2._ivy_dtype
      return np_dtype(promote_types_jax(type1, type2))
  
file_path: ivy/ivy/functional/frontends/jax/numpy/dtype.py
imports: import ivy
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back
  from ivy.functional.frontends.jax.numpy import jax_numpy_casting_table, promote_types_jax
  from ivy.functional.frontends.numpy import dtype
  from ivy import with_supported_dtypes
label_desc: Use image node_id 4 for calling a global function with example usage: promote_types() and returns: np_dtype