code: def _check_coreset_size(x, n):
      if n > x.shape[0]:
          raise ValueError(
              f"n (n={n}) is greater the number of available samples (num_samples={x.shape[0]})"
          )
  
file_path: small-text/small_text/query_strategies/coresets.py
imports: import warnings
  import numpy
  from sklearn.metrics import pairwise_distances
  from small_text.query_strategies.strategies import EmbeddingBasedQueryStrategy
label_desc: Use image node_id 1 for calling a global function with example usage: _check_coreset_size(x, n) without return types