code: def test_graph_data_loader_get_triples(graph_data_loader):
      entities = ["a", "c"]
      entities_inds = graph_data_loader.backend.mapper.get_indexes(
          entities, type_of="e"
      )
      triples = graph_data_loader.get_triples(entities=entities_inds)
      assert np.array_equal(
          triples, np.array([[0, 0, 1, "train"]])
      ), "Returned indexes should be , instead got {} for the following indexes: {}.".format(
          triples, entities_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 8 for calling a global function with example usage: test_graph_data_loader_get_triples(graph_data_loader) without return types