code: def test_data_source_identifier(source_identifier):
      src_identifier, data_src = source_identifier
      if isinstance(data_src, str):
          src = data_src.split(".")[-1]
      elif isinstance(data_src, np.ndarray):
          src = "iter"
      else:
          assert False, "Provided data source is not supported."
      assert (
          src == src_identifier.get_src()
      ), "Source identified not equal to the one provided."
  
file_path: AmpliGraph/tests/ampligraph/datasets/test_source_identifier.py
imports: import numpy
  import pytest
  import pandas
  from ampligraph.datasets import load_csv, chunks
  from ampligraph.datasets.source_identifier import DataSourceIdentifier
  import os
label_desc: Use image node_id 6 for calling a global function with example usage: test_data_source_identifier(source_identifier) without return types