code: def test_partial_powerset():
      ps, w = cuml.explainer.kernel_shap._powerset(6, 3, 42)
  
      for i in range(len(ps)):
          assert np.all(ps[i] == partial_powerset_result[i])
          assert math.isclose(w[i], partial_powerset_weight_result[i])
  
imports: from sklearn.model_selection import train_test_split
  from cuml.testing.utils import create_synthetic_dataset, ClassEnumerator, get_shap_values
  from cuml.datasets import make_regression
  from cuml.internals.import_utils import has_shap
  from cuml.internals.import_utils import has_scipy
  from cuml import KernelExplainer
  from cuml import Lasso
  import sklearn.neighbors
  import pytest
  import math
  from cuml.internals.safe_imports import cpu_only_import
  import cuml
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 10 for calling a global function with example usage: test_partial_powerset() without return types