code: def test_naive_bayes(nlp_20news):
      X, y = nlp_20news
  
      X = sparse_scipy_to_cp(X, cp.float32).astype(cp.float32)
      y = y.astype(cp.int32)
  
      with cupy_using_allocator(dummy_allocator):
          model = MultinomialNB()
          model.fit(X, y)
  
          y_hat = model.predict(X)
          y_hat = model.predict(X)
          y_hat = model.predict_proba(X)
          y_hat = model.predict_log_proba(X)
          y_hat = model.score(X, y)
  
          del y_hat
  
file_path: cuml/python/cuml/tests/test_allocator.py
imports: from cuml.internals.input_utils import sparse_scipy_to_cp
  from cuml.testing.utils import small_classification_dataset
  from cuml.naive_bayes import MultinomialNB
  from cuml import LogisticRegression
  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 4 for calling a global function with example usage: test_naive_bayes(nlp_20news) without return types