code: def run_sbml_validation(document, notifications):
      
      validator = libsbml.SBMLValidator()
      validator.validate(document)
      for i in range(document.getNumErrors()):
          notifications['errors'].append(format_failure(document.getError(i)))
      for i in range(validator.getNumFailures()):
          failure = validator.getFailure(i)
          if failure.isWarning():
              notifications['warnings'].append(format_failure(failure))
          else:
              notifications['errors'].append(format_failure(failure))
docs: Report errors and warnings found in an SBML document.