code: def test_get_dtype_from_model_func():
      X, y = make_regression(
          n_samples=81,
          n_features=10,
          noise=0.1,
          random_state=42,
          dtype=np.float32,
      )
  
      # checking model with float32 dtype
      model_f32 = reg().fit(X, y)
  
      assert get_dtype_from_model_func(model_f32.predict) == np.float32
  
      # checking model with float64 dtype
      X = X.astype(np.float64)
      y = y.astype(np.float64)
  
      model_f64 = reg().fit(X, y)
  
      assert get_dtype_from_model_func(model_f64.predict) == np.float64
  
      # checking model that has not been fitted yet
      model_not_fit = reg()
  
      assert get_dtype_from_model_func(model_not_fit.predict) is None
  
      # checking arbitrary function
      def dummy_func(x):
          return x + x
  
      assert get_dtype_from_model_func(dummy_func) is None
  
imports: from pylibraft.common.handle import Handle
  from sklearn.linear_model import LinearRegression
  from cuml.datasets import make_regression
  from cuml.testing.utils import ClassEnumerator
  from cuml.explainer.common import model_func_call
  from cuml.explainer.common import link_dict
  from cuml.explainer.common import get_tag_from_model_func
  from cuml.explainer.common import get_link_fn_from_str_or_fn
  from cuml.explainer.common import get_handle_from_cuml_model_func
  from cuml.explainer.common import get_dtype_from_model_func
  from cuml.explainer.common import get_cai_ptr
  from cuml import PCA
  from cuml import LinearRegression
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
  import cuml
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_dtype_from_model_func() and returns: unknown