code: def _directed(node, graph) -> List[tuple]:
      edges = graph.out_edges(node, data=True)
  
      return edges
  
imports: import random
  from functools import partial
  from typing import List, Callable
  import numpy
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: _directed(node, graph) and returns: edges