code: def test_indexed_inputs(input_type, num_rows, num_cols, order):
      if num_cols == 1:
          input_type += "-series"
  
      index = np.arange(num_rows, 2 * num_rows)
  
      input_data, real_data = get_input(
          input_type, num_rows, num_cols, np.float32, index=index
      )
  
      X, n_rows, n_cols, res_dtype = input_to_cuml_array(
          input_data, order=order
      )
  
      # testing the index in the cuml array
      np.testing.assert_equal(X.index.to_numpy(), index)
  
      # testing the index in the converted outputs
      cudf_output = X.to_output("cudf")
      np.testing.assert_equal(cudf_output.index.to_numpy(), index)
  
      pandas_output = X.to_output("pandas")
      np.testing.assert_equal(pandas_output.index.to_numpy(), index)
  
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 9 for calling a global function with example usage: test_indexed_inputs(input_type, num_rows, num_cols, order) without return types