docs: def check_dataset_format(ds_format):
      """
      Ensure dataset format is XML or CSV
  
      :param str ds_format: Format of the Dataset (expected to be one of `csv` or `xml`)
      """
      if ds_format.lower() not in DATASET_FORMATS.keys():
          raise ValueError(
              "dataset_format is expected to be one of %s. '%s' is not valid"
              % (", ".join(DATASET_FORMATS.keys()), ds_format)
          )