docs: def check_for_dataset(files):
      """ A GDM dataset has the form:
          - S_00000.gdm
          - S_00000.gdm.meta
          - S_00001.gdm
          - S_00001.gdm.meta
          - ...
          - schema.xml
          - [profile.xml]
          - [web_profile.xml]
      :param files: path of the dataset
      :return: True if the path contains a gdm dataset
      """
      all_files = os.listdir(files)
      meta_files = set(map(lambda y: y[: -9], filter(lambda x: x.endswith(".gdm.meta"), all_files)))
      regs_files = set(map(lambda y: y[: -4], filter(lambda x: x.endswith(".gdm"), all_files)))
      return meta_files == regs_files