class_docstr: Constructor for the DataReader class.
  Data Reader class takes in the information given by the user, and appropriately reads the data in. Detects for filetype, and other information passed to it
  :param in_mem_data: data file as a path
  :param dataset_name: name of the dataset
docstr: helper function to take the file name and figure out what sort of file it is
  :param data the string name of the file
  :return file extension name
code: def type_detector(self, data):
      """
      helper function to take the file name and figure out what sort of file it is
      :param data the string name of the file
      :return file extension name
      """
      if data[-3:] == "csv":
          return "csv"
      if data[-2:] == "xs":
          return "xs"
      if data[-4:] == "json":
          return "json"
  
file_path: nylon/nylon/data/reader.py
imports: import pandas
  import warnings
label_desc: Use image node_id 4 for calling the DataReader obj's underlying member method code with example usage: obj.type_detector(data) and returns: str, str, str