code: def test_kg_triple_sequence_negative_samples(sample_strategy):
      max_node_iloc = 1234567
      negative_sampless = 100
      s = [0, 1]
      r = [2, 3]
      t = [4, 5]
      seq = KGTripleSequence(
          max_node_iloc=max_node_iloc,
          source_ilocs=s,
          rel_ilocs=r,
          target_ilocs=t,
          batch_size=2,
          shuffle=False,
          negative_samples=negative_sampless,
          sample_strategy=sample_strategy,
          seed=None,
      )
  
      sample = seq[0]
      check_sequence_output(
          sample,
          2,
          negative_sampless,
          max_node_iloc,
          s,
          r,
          t,
          sample_strategy=sample_strategy,
      )
  
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 8 for calling a global function with example usage: test_kg_triple_sequence_negative_samples(sample_strategy) without return types