code: def promote_types(type1, type2):
      """Returns the type resulting from applying NumPy type promotion.
  
      Args:
        type1: A numpy type.
        type2: A numpy type.
  
      Returns:
        A numpy type.
      """
      type1 = _to_numpy_type(type1)
      type2 = _to_numpy_type(type2)
      return dtypes.canonicalize_dtype(np.promote_types(type1, type2))
  
imports: import funcsigs
  import numpy
  import tensorflow.compat.v2
  from trax.tf_numpy.numpy_impl import arrays
  from trax.tf_numpy.numpy_impl import dtypes
label_desc: Use image node_id 8 for calling a global function with example usage: promote_types(type1, type2) and returns: dtypes