def METHOD_NAME(self):
    import khmer
    try:
        load_nodegraph = khmer.load_nodegraph
    except AttributeError:
        load_nodegraph = khmer.Nodegraph.load
    with NamedTemporaryFile() as f:
        self.save(f.name)
        f.file.flush()
        f.file.seek(0)
        return load_nodegraph(f.name)