code: def promote_types(
      type1, type2
  ):  # pylint: disable=missing-function-docstring
      type1 = _to_numpy_type(type1)
      type2 = _to_numpy_type(type2)
      return np_dtypes.canonicalize_dtype(
          np.promote_types(type1, type2)
      )
  
imports: import inspect
  import numbers
  import os
  import re
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import flexible_dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.numpy_ops import np_arrays
  from tensorflow.python.ops.numpy_ops import np_dtypes
  from tensorflow.python.types import core
  from tensorflow.python.util import nest
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 28 for calling a global function with example usage: promote_types(type1, type2) and returns: np_dtypes