class_docstr: Tests for generation of triples.
docstr: Test generating a triples factory.
code: def test_generate_triples_factory(self):
      """Test generating a triples factory."""
      for random_state in range(100):
          tf = generate_triples_factory(
              num_entities=self.num_entities,
              num_relations=self.num_relations,
              num_triples=self.num_triples,
              random_state=random_state,
          )
          self.assertEqual(self.num_triples, tf.mapped_triples.shape[0])
          self.assert_consecutive(get_entities(tf.mapped_triples))
          self.assert_consecutive(get_relations(tf.mapped_triples))
  
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 3 for calling the TestGenerate obj's underlying member method code with example usage: obj.test_generate_triples_factory() without return types