code: def test_logistic_regression():
      with cupy_using_allocator(dummy_allocator):
          (
              X_train,
              X_test,
              y_train,
              y_test,
          ) = small_classification_dataset(np.float32)
          y_train = y_train.astype(np.float32)
          y_test = y_test.astype(np.float32)
          culog = LogisticRegression()
          culog.fit(X_train, y_train)
          culog.predict(X_train)
  
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 3 for calling a global function with example usage: test_logistic_regression() without return types