code: def find_first(
      graph, predicate: Callable[[GraphNode], bool]
  ) -> Optional[GraphNode]:
      return next(filter(predicate, graph.nodes), None)
  
imports: from typing import List, Optional, Callable, Sequence
  from golem.core.dag.graph import Graph
  from golem.core.dag.graph_node import GraphNode
label_desc: Use image node_id 4 for calling a global function with example usage: find_first(graph, predicate) and returns: next