code: def _promote_dtypes(name, *args):
      assert isinstance(name, str)
      if not all(isinstance(arg, jax.Array) for arg in args):
          raise ValueError(
              f"{name}: inputs must be arrays; got types {[type(arg) for arg in args]}"
          )
      dtype = _result_type(*args)
      return [arg.astype(dtype) for arg in args]
  
imports: import jax
  from jax.experimental.array_api._data_type_functions import result_type, isdtype
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _promote_dtypes(name) and returns: unknown