code: def test_query_when_unlabeled_pool_is_smaller_than_k(
      self, num_samples=100, n=10
  ):
      dataset = random_sklearn_dataset(num_samples, vocab_size=10)
      base_query_strategy = LeastConfidence()
      strategy = SEALS(base_query_strategy, k=100)
  
      with patch.object(
          strategy,
          "get_subset_indices",
          wraps=strategy.get_subset_indices,
      ) as get_subset_indices_spy, patch.object(
          base_query_strategy, "query", wraps=base_query_strategy.query
      ) as base_strategy_query_spy:
          indices_labeled = np.random.choice(
              np.arange(num_samples), size=10, replace=False
          )
          indices_unlabeled = np.array(
              [
                  i
                  for i in range(len(dataset))
                  if i not in set(indices_labeled)
              ]
          )
  
          clf_mock = self._get_clf()
          if clf_mock is not None:
              proba = np.random.random_sample((num_samples, 2))
              clf_mock.predict_proba = Mock(return_value=proba)
  
          y = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1])
  
          # no error should be thrown
          strategy.query(
              clf_mock,
              dataset,
              indices_unlabeled,
              indices_labeled,
              y,
              n=n,
          )
  
      get_subset_indices_spy.assert_not_called()
      base_strategy_query_spy.assert_called_once_with(
          clf_mock, dataset, indices_unlabeled, indices_labeled, y, n=n
      )
  
imports: import unittest
  import pytest
  import numpy
  from unittest.mock import Mock, patch
  from numpy.testing import assert_array_equal
  from sklearn.base import clone
  from sklearn.preprocessing import normalize
  from small_text.query_strategies.exceptions import EmptyPoolException
  from small_text.classifiers import ConfidenceEnhancedLinearSVC, SklearnClassifierFactory
  from small_text.query_strategies import BreakingTies, CategoryVectorInconsistencyAndRanking, ContrastiveActiveLearning, DiscriminativeActiveLearning, EmbeddingKMeans, GreedyCoreset, LeastConfidence, LightweightCoreset, SEALS, SubsamplingQueryStrategy
  from tests.unit.small_text.query_strategies.test_strategies import SamplingStrategiesTests, SklearnClassifierWithRandomEmbeddingsAndProba
  from tests.utils.datasets import random_sklearn_dataset, random_matrix_data
  from tests.utils.object_factory import get_initialized_active_learner
label_desc: Use image node_id 6 for calling the SEALSTest obj's underlying member method code with example usage: obj.test_query_when_unlabeled_pool_is_smaller_than_k(num_samples, n) without return types