code: def test_check_internal_model_failures(client):
      # Test model not trained yet
      model = LinearRegression(client=client)
      assert model.get_combined_model() is None
  
      # Test single Int future fails
      int_future = client.submit(lambda: 1)
      with pytest.raises(ValueError):
          model._set_internal_model(int_future)
  
      # Test list Int future fails
      with pytest.raises(ValueError):
          model._set_internal_model([int_future])
  
      # Test directly setting Int fails
      with pytest.raises(ValueError):
          model._set_internal_model(1)
  
file_path: cuml/python/cuml/tests/dask/test_dask_base.py
imports: from sklearn.model_selection import train_test_split
  from cuml.dask.datasets import make_regression
  from cuml.dask.linear_model import LinearRegression
  from cuml.internals.safe_imports import cpu_only_import_from
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
  import cuml
  from cuml.dask.datasets import make_blobs
  from cuml.testing.dask.utils import load_text_corpus
  from cuml.dask.naive_bayes.naive_bayes import MultinomialNB
  from cuml.dask.cluster import KMeans
  from dask_ml.wrappers import ParallelPostFit
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_internal_model_failures(client) without return types