class_docstr: Class that recognizes the type of given file and provides with an
  adequate loader.
  
  Properties
  ----------
  supported_types: dict
       Dictionary of supported types along with their adequate loaders, to support a new data type, this
       dictionary needs to be updated with the file extension as key and the loading function name as value.
  
  Example
  -------
  >>>identifier = DataSourceIdentifier("data.csv")
  >>>loader = identifier.fetch_loader()
  >>>X = loader("data.csv")
class_docstr_tok: ["Class","that","recognizes","the","type","of","given","file","and","provides","with","an","adequate","loader",".","Properties","--","--","--","--","--","supported_types",":","dict","Dictionary","of","supported","types","along","with","their","adequate","loaders",",","to","support","a","new","data","type",",","this","dictionary","needs","to","be","updated","with","the","file","extension","as","key","and","the","loading","function","name","as","value",".","Example","--","--","--","-",">",">",">","identifier","=","DataSourceIdentifier","(","``","data.csv","''",")",">",">",">","loader","=","identifier.fetch_loader","(",")",">",">",">","X","=","loader","(","``","data.csv","''",")"]
docstr: Initialise DataSourceIdentifier.
  
  Parameters
  ----------
  data_source: str
       Name of a file to be recognized.
docstr_tok: ["Initialise","DataSourceIdentifier",".","Parameters","--","--","--","--","--","data_source",":","str","Name","of","a","file","to","be","recognized","."]
code: def __init__(self, data_source, verbose=False):
      """Initialise DataSourceIdentifier.
  
      Parameters
      ----------
      data_source: str
           Name of a file to be recognized.
      """
      self.verbose = verbose
      self.data_source = data_source
      self.supported_types = {
          "csv": load_csv,
          "txt": load_csv,
          "gz": load_csv,
          "json": load_json,
          "tar": load_tar,
          "iter": chunks,
      }
      self._identify()
  
file_path: AmpliGraph/ampligraph/datasets/source_identifier.py
imports: import logging
  from collections.abc import Iterable
  from itertools import chain, islice
  import numpy
  import pandas
label_desc: Use image node_id 1 to create a new DataSourceIdentifier object  with example: obj = DataSourceIdentifier(data_source, verbose)