code: def sct_report_string(report):
      
      ret = []
      namespaces = {"svrl": "http://purl.oclc.org/dsdl/svrl"}
      for index, failed_assert_el in enumerate(
          report.findall("svrl:failed-assert", namespaces=namespaces)
      ):
          ret.append(
              "{}. {}".format(
                  index + 1,
                  failed_assert_el.find("svrl:text", namespaces=namespaces).text,
              )
          )
          ret.append("   test: {}".format(failed_assert_el.attrib["test"]))
          ret.append("   location: {}".format(failed_assert_el.attrib["location"]))
          ret.append("\n")
      return "\n".join(ret)
docs: Return a human-readable string representation of the error report
      returned by lxml's schematron validator.