code: def test_kg_triple_sequence_batches(negative_samples):
      s = [0, 1, 2, 3, 4]
      r = [5, 6, 7, 8, 9]
      t = [10, 11, 12, 13, 14]
      seq = KGTripleSequence(
          max_node_iloc=20,
          source_ilocs=s,
          rel_ilocs=r,
          target_ilocs=t,
          batch_size=3,
          shuffle=False,
          negative_samples=negative_samples,
          sample_strategy="uniform",
          seed=None,
      )
      assert len(seq) == 2
      check_sequence_output(seq[0], 3, negative_samples, 20, s, r, t)
      check_sequence_output(seq[1], 2, negative_samples, 20, s, r, t)
  
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 5 for calling a global function with example usage: test_kg_triple_sequence_batches(negative_samples) without return types