code: def test_graph_data_loader_get_complementary_objects(
      graph_data_loader,
  ):
      sample = np.array([["a", "b", "d"], ["a", "b", "d"]])
      sample_inds = graph_data_loader.backend.mapper.get_indexes(
          sample, type_of="t"
      )
      objects = graph_data_loader.get_complementary_objects(sample_inds)
      expected = [[1, 2], [1, 2]]
      assert [set(x) for x in objects] == [
          set(x) for x in expected
      ], "Objects differ, expected {}, instead got {} for indexes: {}.".format(
          expected, objects, sample_inds
      )
  
file_path: AmpliGraph/tests/ampligraph/datasets/test_graph_data_loader.py
imports: from ampligraph.datasets import GraphDataLoader, NoBackend
  from ampligraph.datasets.sqlite_adapter import SQLiteAdapter
  import pytest
  import numpy
  import pandas
label_desc: Use image node_id 6 for calling a global function with example usage: test_graph_data_loader_get_complementary_objects(graph_data_loader) without return types