code: def extract_edges_from_nodes(graph, sample_nodes):
      eids = graph_kernel.extract_edges_from_nodes(
          graph.adj_src_index._indptr,
          graph.adj_src_index._sorted_v,
          graph.adj_src_index._sorted_eid,
          sample_nodes,
      )
      return eids
  
file_path: PGL/legacy/pgl/sample.py
imports: import time
  import copy
  import numpy
  import pgl
  from pgl.utils.logger import log
  from pgl import graph_kernel
label_desc: Use image node_id 12 for calling a global function with example usage: extract_edges_from_nodes(graph, sample_nodes) and returns: eids