def METHOD_NAME(args):
    if len(args) != 2:
      print ("Must be given one argument: the path to package-summary.html")
      sys.exit(1)
    # Read the lines of the file into a string variable.
    with open(args[1]) as file:
        lines = ''.join([line.replace('\n', '') for line in file.readlines()])
    # Gather the package class data.  The next regexp will pull out
    # the class name, the package name, and a class description, in
    # that order.  The re.findall(...) will create a list of tuples.
    regexp = r'class in org.sbml.libsbml">\s*(\w+)\s*</A></B></TD>' \
             + r'\s*<TD><span class=[\'"]pkg-marker pkg-color-\w+[\'"]>' \
             + r'<a href=[\'"]group__\w+.html[\'"]>(\w+)</a></span>\s*(.+?)\s*</TD>'
    tuples = re.findall(regexp, lines, re.DOTALL)
    found_pkgs = sorted(list(set([entry[1] for entry in tuples])))
    # Now let's write some output, starting with lead-in text.
    print (header_template)
    for pkg in found_pkgs:
        print (section_start_template.format(pkg))
        class_tuples = [tuple for tuple in tuples if tuple[1] == pkg]
        for c in class_tuples:
            print (entry_template.format(c[0], c[0], pkg, pkg, pkg, c[2]))
        print (section_end_template)