class_docstr: A test case for quickly defining common tests for samplers.
class_docstr_tok: ["A","test","case","for","quickly","defining","common","tests","for","samplers","."]
docstr: Test on a small batch.
docstr_tok: ["Test","on","a","small","batch","."]
code: def test_small_batch(self):
      """Test on a small batch."""
      self.instance.sample(positive_batch=self.positive_batch[:1])
  
file_path: pykeen/tests/test_sampling/cases.py
imports: from typing import Any, MutableMapping
  import numpy
  import torch
  import unittest_templates
  from pykeen.datasets import Nations
  from pykeen.sampling import NegativeSampler
  from pykeen.sampling.filtering import BloomFilterer, PythonSetFilterer
  from pykeen.triples import Instances, TriplesFactory
label_desc: Use image node_id 8 for calling the NegativeSamplerGenericTestCase obj's underlying member method code with example usage: obj.test_small_batch() without return types