code: def visit(self, g, node):
      if not isinstance(node, ParsedTFNode):
          node = g[node]
  
      if node.name in self.memo:
          return self
      self.memo[node.name] = 1
  
      if self.fn(node):
          self.result.append(node.name)
  
      for i in node.outputs:
          self.visit(g, g[i])
  
      for i in node.inputs:
          self.visit(g, g[i])
  
      return self
  
imports: from ..parsed_tf_node import ParsedTFNode
label_desc: Use image node_id 2 for calling the FindAllReachableNodes obj's underlying member method code with example usage: obj.visit(g, node) and returns: self, self