code: def pop(self):
      (cost, num, path) = heappop(self.sortedpaths)
      hashable_path = tuple(path)
      self.paths.remove(hashable_path)
      return path
  
file_path: networkx/networkx/algorithms/simple_paths.py
imports: from heapq import heappop, heappush
  from itertools import count
  import networkx
  from networkx.algorithms.shortest_paths.weighted import _weight_function
  from networkx.utils import not_implemented_for, pairwise
label_desc: Use image node_id 4 for calling the PathBuffer obj's underlying member method code with example usage: obj.pop() and returns: path