def METHOD_NAME(
    self,
    inputfile,
    outputfile,
    templates,
    duplicatestyle,
    multifilestyle,
):
    if hasattr(self, "outputstore"):
        self._parse_and_extract(inputfile, self.outputstore)
    else:
        store = po.pofile()
        self._parse_and_extract(inputfile, store)
        store.removeduplicates(duplicatestyle)
        store.serialize(outputfile)
    return 1