code: def parse_bismark_report(self, report, regexes):
          
          parsed_data = {}
          for k, r in regexes.items():
              r_search = re.search(r, report, re.MULTILINE)
              if r_search:
                  try:
                      parsed_data[k] = float(r_search.group(1))
                  except ValueError:
                      parsed_data[k] = r_search.group(1) # NaN
          if len(parsed_data) == 0: return None
          return parsed_data
docs: Search a bismark report with a set of regexes