code: def promote_types_of_onnx_inputs(
      x1: Union[ivy.Array, Number, Iterable[Number]],
      x2: Union[ivy.Array, Number, Iterable[Number]],
      /,
  ) -> Tuple[ivy.Array, ivy.Array]:
      """Promote the dtype of the given native array inputs to a common dtype
      based on type promotion rules.
  
      While passing float or integer values or any other non-array input
      to this function, it should be noted that the return will be an
      array-like object. Therefore, outputs from this function should be
      used as inputs only for those functions that expect an array-like or
      tensor-like objects, otherwise it might give unexpected results.
      """
      type1 = ivy.default_dtype(item=x1).strip("u123456789")
      type2 = ivy.default_dtype(item=x2).strip("u123456789")
      if (
          hasattr(x1, "dtype")
          and not hasattr(x2, "dtype")
          and type1 == type2
      ):
          x1 = ivy.asarray(x1)
          x2 = ivy.asarray(
              x2,
              dtype=x1.dtype,
              device=ivy.default_device(item=x1, as_native=False),
          )
      elif (
          not hasattr(x1, "dtype")
          and hasattr(x2, "dtype")
          and type1 == type2
      ):
          x1 = ivy.asarray(
              x1,
              dtype=x2.dtype,
              device=ivy.default_device(item=x2, as_native=False),
          )
          x2 = ivy.asarray(x2)
      else:
          x1 = ivy.asarray(x1)
          x2 = ivy.asarray(x2)
          promoted = promote_types_onnx(x1.dtype, x2.dtype)
          x1 = ivy.asarray(x1, dtype=promoted)
          x2 = ivy.asarray(x2, dtype=promoted)
      return x1, x2
  
file_path: ivy/ivy/functional/frontends/onnx/__init__.py
imports: import ivy
  from ivy.utils.exceptions import handle_exceptions
  from numbers import Number
  from typing import Union, Tuple, Iterable
  from .None import helper
  from .None import tensor
  from .tensor import *
  from .None import elementwise
  from .elementwise import *
  from .None import linalg
  from .linalg import *
label_desc: Use image node_id 2 for calling a global function with example usage: promote_types_of_onnx_inputs() and returns: x1,  x2