code: def _test_query_strategy(
      self, query_strategy, multi_label=False, num_classes=3
  ):
      clf = SklearnClassifier(
          ConfidenceEnhancedLinearSVC(), num_classes
      )
      ds = random_sklearn_dataset(num_samples=100)
  
      indices_all = np.arange(len(ds))
      indices_labeled = np.random.choice(indices_all, 10, replace=False)
      indices_unlabeled = np.delete(indices_all, indices_labeled)
  
      if multi_label:
          y = scipy.sparse.random(
              100, num_classes, density=0.5, format="csr"
          )
          y.data[np.s_[:]] = 1
          y = y.astype(int)
      else:
          y = np.random.randint(
              num_classes, size=indices_labeled.shape[0]
          )
  
      query_strategy.query(
          clf, ds, indices_unlabeled, indices_labeled, y
      )
  
imports: import unittest
  import scipy
  import numpy
  from small_text.classifiers.classification import SklearnClassifier, ConfidenceEnhancedLinearSVC
  from small_text.query_strategies.base import ClassificationType, constraints
  from small_text.query_strategies.strategies import RandomSampling
  from tests.utils.datasets import random_sklearn_dataset
label_desc: Use image node_id 6 for calling the ConstraintTest obj's underlying member method code with example usage: obj._test_query_strategy(query_strategy, multi_label, num_classes) without return types