def METHOD_NAME(self, filename, encoding=None, debug=False):
    """Parse a file and return the syntax tree."""
    with io.open(filename, "r", encoding=encoding) as stream:
        return self.parse_stream(stream, debug)