code: def test_dtype_check(dtype, check_dtype, input_type, order):
      if (
          dtype == np.float16 or check_dtype == np.float16
      ) and input_type != "numpy":
          pytest.xfail("float16 not yet supported by numba/cuDF")
  
      if dtype in [np.uint8, np.uint16, np.uint32, np.uint64]:
          if input_type in ["cudf", "pandas"]:
              pytest.xfail("unsigned int types not yet supported")
  
      input_data, real_data = get_input(
          input_type, 10, 10, dtype, order=order
      )
  
      if input_type == "cupy" and input_data is None:
          pytest.skip("cupy not installed")
  
      if dtype == check_dtype:
          _, _, _, got_dtype = input_to_cuml_array(
              input_data, check_dtype=check_dtype, order=order
          )
          assert got_dtype == check_dtype
      else:
          with pytest.raises(TypeError):
              _, _, _, got_dtype = input_to_cuml_array(
                  input_data, check_dtype=check_dtype, order=order
              )
  
imports: from pandas import Series
  from cuml.internals.safe_imports import cpu_only_import_from
  from cuml.internals.safe_imports import gpu_only_import_from
  from cuml.internals.input_utils import convert_dtype
  from cuml.common import has_cupy
  from cuml.internals.input_utils import input_to_cupy_array
  from cuml.common import input_to_host_array
  from cuml.common import input_to_cuml_array, CumlArray
  from cuml.internals.safe_imports import cpu_only_import
  import pytest
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 6 for calling a global function with example usage: test_dtype_check(dtype, check_dtype, input_type, order) without return types