class_docstr: A basic test for filtering.
class_docstr_tok: ["A","basic","test","for","filtering","."]
code: def _pre_instantiation_hook(
      self, kwargs: MutableMapping[str, Any]
  ) -> MutableMapping[str, Any]:  # noqa: D102
      kwargs = super()._pre_instantiation_hook(kwargs=kwargs)
      self.generator = set_random_seed(seed=self.seed)[1]
      self.triples_factory = Nations().training
      kwargs[
          "mapped_triples"
      ] = self.mapped_triples = self.triples_factory.mapped_triples
      return kwargs
  
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 1 for calling the FiltererTest obj's underlying member method code with example usage: obj._pre_instantiation_hook(kwargs) and returns: kwargs