code: def test_svc_weights(class_weight, sample_weight):
      # We are using the following example as a test case
      # https://scikit-learn.org/stable/auto_examples/svm/plot_separating_hyperplane_unbalanced.html
      X, y = make_blobs(
          n_samples=[1000, 100],
          centers=[[0.0, 0.0], [2.0, 2.0]],
          cluster_std=[1.5, 0.5],
          random_state=137,
          shuffle=False,
      )
      if sample_weight:
          # Put large weight on class 1
          sample_weight = y * 9 + 1
  
      params = {"kernel": "linear", "C": 1, "gamma": "scale"}
      params["class_weight"] = class_weight
      cuSVC = cu_svm.SVC(**params)
      cuSVC.fit(X, y, sample_weight)
  
      if class_weight is not None or sample_weight is not None:
          # Standalone test: check if smaller blob is correctly classified in the
          # presence of class weights
          X_1 = X[y == 1, :]
          y_1 = np.ones(X_1.shape[0])
          cu_score = cuSVC.score(X_1, y_1)
          assert cu_score > 0.9
  
      sklSVC = svm.SVC(**params)
      sklSVC.fit(X, y, sample_weight)
      compare_svm(
          cuSVC, sklSVC, X, y, coef_tol=1e-5, report_summary=True
      )
  
imports: import platform
  from sklearn.preprocessing import StandardScaler
  from sklearn.model_selection import train_test_split
  from sklearn.metrics import mean_squared_error
  from sklearn.datasets import make_classification, make_gaussian_quantiles
  from sklearn.datasets import make_regression, make_friedman1
  from sklearn.datasets import load_iris, make_blobs
  from sklearn import svm
  from cuml.testing.utils import unit_param, quality_param, stress_param, compare_svm, compare_probabilistic_svm, svm_array_equal
  from cuml.common import input_to_cuml_array
  import cuml.svm
  import cuml
  from cuml.internals.safe_imports import gpu_only_import_from
  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 9 for calling a global function with example usage: test_svc_weights(class_weight, sample_weight) without return types