code: def test_reciprocals():
      """Test for reciprocal relations"""
      # Create dataset with reciprocal relations and test if the are added
      fb15k = load_fb15k(add_reciprocal_rels=True)
      train_reciprocal = fb15k["train"]
      triple = train_reciprocal[0]
      reciprocal_triple = train_reciprocal[
          train_reciprocal.shape[0] // 2
      ]
      assert triple[0] == reciprocal_triple[2]
      assert triple[2] == reciprocal_triple[0]
      assert triple[1] + "_reciprocal" == reciprocal_triple[1]
  
      # create the same dataset without reciprocals. Now the number of triples should be half of prev
      fb15k = load_fb15k(add_reciprocal_rels=False)
      assert fb15k["train"].shape[0] == train_reciprocal.shape[0] // 2
  
file_path: AmpliGraph/tests/ampligraph/datasets/test_datasets.py
imports: from ampligraph.datasets import load_wn18, load_fb15k, load_fb15k_237, load_yago3_10, load_wn18rr, load_wn11, load_fb13
  from ampligraph.datasets.datasets import _clean_data
  import os
  import numpy
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_reciprocals() without return types