class_docstr: Tests for deterioration workflow.
class_docstr_tok: ["Tests","for","deterioration","workflow","."]
code: def _help_check(self, derived: Dataset):
      self.assertIsNotNone(derived.validation)
      self.assertEqual(
          self.num_training_triples, self.reference.training.num_triples
      )
      self.assertEqual(
          self.num_triples,
          sum(
              (
                  derived.training.num_triples,
                  derived.testing.num_triples,
                  derived.validation.num_triples,
              )
          ),
          msg="different number of total triples",
      )
      self.assertLess(
          derived.training.num_triples,
          self.reference.training.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 4 for calling the TestDeterioration obj's underlying member method code with example usage: obj._help_check(derived) without return types