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