code: def promote_types_jax(
      type1: Union[ivy.Dtype, ivy.NativeDtype],
      type2: Union[ivy.Dtype, ivy.NativeDtype],
      /,
  ) -> ivy.Dtype:
      """Promote the datatypes type1 and type2, returning the data type they
      promote to.
  
      Parameters
      ----------
      type1
          the first of the two types to promote
      type2
          the second of the two types to promote
  
      Returns
      -------
      ret
          The type that both input types promote to
      """
      try:
          ret = jax_promotion_table[
              (ivy.as_ivy_dtype(type1), ivy.as_ivy_dtype(type2))
          ]
      except KeyError as e:
          raise ivy.utils.exceptions.IvyException(
              "these dtypes are not type promotable"
          ) from e
      return ret
  
imports: from numbers import Number
  from typing import Union, Tuple, Iterable
  import ivy
  from ivy.utils.exceptions import handle_exceptions
  import ivy.functional.frontends.jax
  from .None import fft
  from .None import linalg
  from .None import creation
  from .creation import *
  from .dtype import *
  from .scalars import *
  from .None import indexing
  from .indexing import *
  from .None import logic
  from .logic import *
  from .None import manipulations
  from .manipulations import *
  from .None import mathematical_functions
  from .mathematical_functions import *
  from .None import statistical
  from .statistical import *
  from .None import searching_sorting
  from .searching_sorting import *
label_desc: Use image node_id 1 for calling a global function with example usage: promote_types_jax() and returns: ret