class_docstr: Tests for deterioration workflow.
class_docstr_tok: ["Tests","for","deterioration","workflow","."]
docstr: Set up deterioration tests.
docstr_tok: ["Set","up","deterioration","tests","."]
code: def setUp(self) -> None:
      """Set up deterioration tests."""
      self.generator = ensure_torch_random_state(42)
      self.reference = Nations()
      self.num_training_triples = self.reference.training.num_triples
      self.num_triples = (
          self.reference.training.num_triples
          + self.reference.testing.num_triples
          + self.reference.validation.num_triples
      )
  
file_path: pykeen/tests/test_deteriorate.py
imports: import unittest
  from pykeen.datasets.base import Dataset
  from pykeen.datasets.nations import Nations
  from pykeen.triples.triples_factory import splits_steps
  from pykeen.utils import ensure_torch_random_state
label_desc: Use image node_id 1 for calling the TestDeterioration obj's underlying member method code with example usage: obj.setUp() without return types