code: def promote_types(type1, type2, /):
      if isinstance(type1, np_frontend.dtype):
          type1 = type1._ivy_dtype
      if isinstance(type2, np_frontend.dtype):
          type2 = type2._ivy_dtype
      return np_frontend.dtype(
          np_frontend.promote_numpy_dtypes(type1, type2)
      )
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 3 for calling a global function with example usage: promote_types() and returns: np_frontend