code: def get_all_filelist(data_dir):
      
  
      all_meta = []
      all_table = []
      all_element = []
      all_component = []
  
      special = ['METADATA.json', 'REFERENCES.json']
  
      for root, dirs, files in os.walk(data_dir):
          for basename in files:
              if basename in special:
                  continue
  
              fpath = os.path.join(root, basename)
              fpath = os.path.relpath(fpath, data_dir)
  
              if basename.endswith('.metadata.json'):
                  all_meta.append(fpath)
              elif basename.endswith('.table.json'):
                  all_table.append(fpath)
              elif basename.endswith('.element.json'):
                  all_element.append(fpath)
              elif basename.endswith('.json'):
                  all_component.append(fpath)
  
      return (all_meta, all_table, all_element, all_component)
docs: Returns a tuple containing the following (as lists)
  
      0. All metadata files
      1. All table basis files
      2. All element basis files
      3. All component basis files
  
      The paths to all the files are returned as paths relative to data_dir