code: def push(self, cost, path):
      hashable_path = tuple(path)
      if hashable_path not in self.paths:
          heappush(self.sortedpaths, (cost, next(self.counter), path))
          self.paths.add(hashable_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 3 for calling the PathBuffer obj's underlying member method code with example usage: obj.push(cost, path) without return types