code: def test_kg_triple_sequence_seed_shuffle_negative_samples():
      def mk(seed):
          return KGTripleSequence(
              max_node_iloc=10000,
              source_ilocs=[0, 1],
              rel_ilocs=[2, 3],
              target_ilocs=[4, 5],
              batch_size=1,
              shuffle=True,
              negative_samples=5,
              sample_strategy="uniform",
              seed=seed,
          )
  
      def run(a, b):
          sample_a = a[0]
          sample_b = b[0]
          a.on_epoch_end()
          b.on_epoch_end()
          return epoch_sample_equal(sample_a, sample_b)
  
      # the same seed should give the same sequence
      seq0_1 = mk(0)
      seq0_2 = mk(0)
      assert all(run(seq0_1, seq0_2) for _ in range(20))
  
      # different seeds should give different sequences
      seq1 = mk(1)
      seq2 = mk(2)
      assert not all(run(seq1, seq2) for _ in range(20))
  
file_path: stellargraph/tests/mapper/test_knowledge_graph.py
imports: import pytest
  import pandas
  import numpy
  from stellargraph.mapper.knowledge_graph import KGTripleGenerator, KGTripleSequence
  from ..None import test_utils
  from ..test_utils.graphs import knowledge_graph
label_desc: Use image node_id 9 for calling a global function with example usage: test_kg_triple_sequence_seed_shuffle_negative_samples() and returns: KGTripleSequence, epoch_sample_equal