code: def test_rf_get_text(client, n_estimators, detailed_text):
      n_workers = len(client.scheduler_info()["workers"])
  
      X, y = make_classification(
          n_samples=500,
          n_features=10,
          n_clusters_per_class=1,
          n_informative=5,
          random_state=94929,
          n_classes=2,
      )
  
      X = X.astype(np.float32)
      y = y.astype(np.int32)
      X, y = _prep_training_data(client, X, y, partitions_per_worker=2)
  
      if n_estimators >= n_workers:
          cu_rf_mg = cuRFC_mg(
              n_estimators=n_estimators,
              n_bins=16,
              ignore_empty_partitions=True,
          )
      else:
          with pytest.raises(ValueError):
              cu_rf_mg = cuRFC_mg(
                  n_estimators=n_estimators,
                  n_bins=16,
                  ignore_empty_partitions=True,
              )
          return
  
      cu_rf_mg.fit(X, y)
  
      if detailed_text:
          text_output = cu_rf_mg.get_detailed_text()
      else:
          text_output = cu_rf_mg.get_summary_text()
  
      # Test 1. Output is non-zero
      assert "" != text_output
  
      # Count the number of trees printed
      tree_count = 0
      for line in text_output.split("\n"):
          if line.strip().startswith("Tree #"):
              tree_count += 1
  
      # Test 2. Correct number of trees are printed
      assert n_estimators == tree_count
  
imports: from dask.distributed import Client
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.metrics import accuracy_score, r2_score, mean_squared_error
  from sklearn.model_selection import train_test_split
  from sklearn.datasets import make_regression, make_classification
  from dask.array import from_array
  from cuml.ensemble import RandomForestRegressor
  from cuml.ensemble import RandomForestClassifier
  from cuml.dask.common import utils
  from cuml.dask.ensemble import RandomForestRegressor
  from cuml.dask.ensemble import RandomForestClassifier
  from cuml.internals.safe_imports import cpu_only_import
  import json
  import pytest
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 12 for calling a global function with example usage: test_rf_get_text(client, n_estimators, detailed_text) without return types