class_docstr: A basic test for filtering.
class_docstr_tok: ["A","basic","test","for","filtering","."]
code: def post_instantiation_hook(self) -> None:  # noqa: D102
      self.positive_batch = self.mapped_triples[
          torch.randint(
              low=0,
              high=self.mapped_triples.shape[0],
              size=(self.batch_size,),
              generator=self.generator,
          )
      ]
  
file_path: pykeen/tests/test_sampling/test_filterer.py
imports: from typing import Any, MutableMapping
  import torch
  import unittest_templates
  from pykeen.datasets import Nations
  from pykeen.sampling.filtering import BloomFilterer, Filterer, PythonSetFilterer
  from pykeen.utils import set_random_seed
label_desc: Use image node_id 2 for calling the FiltererTest obj's underlying member method code with example usage: obj.post_instantiation_hook() without return types