code: def test_score(client):
      X, y = load_text_corpus(client)
  
      model = MultinomialNB()
      model.fit(X, y)
  
      y_hat = model.predict(X)
  
      score = model.score(X, y)
  
      y_hat_local = y_hat.compute()
      y_local = y.compute()
  
      assert accuracy_score(y_hat_local.get(), y_local) == score
  
file_path: cuml/python/cuml/tests/dask/test_dask_naive_bayes.py
imports: from sklearn.metrics import accuracy_score
  from cuml.testing.dask.utils import load_text_corpus
  from cuml.naive_bayes.naive_bayes import MultinomialNB
  from cuml.dask.naive_bayes import MultinomialNB
  import pytest
  import dask.array
  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_score(client) without return types