code: def test_auto_predict(
      input_type, base_output_type, global_output_type
  ):
      """
      Test autowrapping on predict that will set target_type
      """
      X_in = create_input(input_type, np.float32, (10, 10), "F")
  
      # Test with output_type="input"
      est = DummyTestEstimator()
  
      # With cuml.global_settings.output_type == None, this should return the
      # input type
      X_out = est.predict(X_in)
  
      assert determine_array_type(X_out) == input_type
  
      assert_array_identical(X_in, X_out)
  
      # Test with output_type=base_output_type
      est = DummyTestEstimator(output_type=base_output_type)
  
      # With cuml.global_settings.output_type == None, this should return the
      # base_output_type
      X_out = est.predict(X_in)
  
      assert determine_array_type(X_out) == base_output_type
  
      assert_array_identical(X_in, X_out)
  
      # Test with global_output_type, should return global_output_type
      with cuml.using_output_type(global_output_type):
          X_out = est.predict(X_in)
  
          target_output_type = global_output_type
  
          if (
              target_output_type is None
              or target_output_type == "input"
          ):
              target_output_type = base_output_type
  
          if target_output_type == "input":
              target_output_type = input_type
  
          assert determine_array_type(X_out) == target_output_type
  
          assert_array_identical(X_in, X_out)
  
imports: from cuml.internals.input_utils import input_to_cuml_array
  from cuml.internals.input_utils import determine_array_type
  from cuml.internals.input_utils import determine_array_dtype
  from cuml.common.array_descriptor import CumlArrayDescriptor
  from cuml.internals.array import CumlArray
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
  import pickle
  import cuml
  import cuml.internals
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 7 for calling a global function with example usage: test_auto_predict(input_type, base_output_type, global_output_type) without return types