def METHOD_NAME(self, data):
    fd, fn = tempfile.mkstemp()
    os.write(fd, data.encode())
    os.close(fd)
    try:
        return digest.parse_manifest(self.convert_source(fn))
    finally:
        os.unlink(fn)