class_docstr: Tests for generation of triples.
docstr: Assert that all of the things in the collection are consecutive integers.
code: def assert_consecutive(self, x: Set[int], msg=None):
      """Assert that all of the things in the collection are consecutive integers."""
      self.assertEqual(set(range(len(x))), x, msg=msg)
  
file_path: pykeen/tests/test_generation.py
imports: import unittest
  from typing import Set
  from pykeen.triples.generation import generate_triples, generate_triples_factory
  from pykeen.triples.utils import get_entities, get_relations
label_desc: Use image node_id 1 for calling the TestGenerate obj's underlying member method code with example usage: obj.assert_consecutive(x, msg) without return types