code: def _check_quality_format(items):
      
      SAMPLE_FORMAT = {"illumina_1.3+": "illumina",
                       "illumina_1.5+": "illumina",
                       "illumina_1.8+": "standard",
                       "solexa": "solexa",
                       "sanger": "standard"}
      fastq_extensions = ["fq.gz", "fastq.gz", ".fastq", ".fq"]
  
      for item in items:
          specified_format = item["algorithm"].get("quality_format", "standard").lower()
          if specified_format not in SAMPLE_FORMAT.values():
              raise ValueError("Quality format specified in the YAML file"
                               "is not supported. Supported values are %s."
                               % (SAMPLE_FORMAT.values()))
  
          fastq_file = next((f for f in item.get("files") or [] if f.endswith(tuple(fastq_extensions))), None)
  
          if fastq_file and specified_format and not objectstore.is_remote(fastq_file):
              fastq_format = _detect_fastq_format(fastq_file)
              detected_encodings = set([SAMPLE_FORMAT[x] for x in fastq_format])
              if detected_encodings:
                  if specified_format not in detected_encodings:
                      raise ValueError("Quality format specified in the YAML "
                                       "file might be a different encoding. "
                                       "'%s' was specified but possible formats "
                                       "detected were %s." % (specified_format,
                                                              ", ".join(detected_encodings)))
docs: Check if quality_format="standard" and fastq_format is not sanger