code: def flat_node_and_edge(nodes, eids):
      """flat_node_and_edge"""
      nodes = list(set(traverse(nodes)))
      eids = list(set(traverse(eids)))
      return nodes, eids
  
file_path: PGL/legacy/examples/distribute_graphsage/reader.py
imports: import os
  import sys
  import numpy
  import pickle
  import paddle
  import paddle.fluid
  import socket
  import pgl
  import time
  from pgl.utils import mp_reader
  from pgl.utils.logger import log
  from pgl import redis_graph
label_desc: Use image node_id 3 for calling a global function with example usage: flat_node_and_edge(nodes, eids) and returns: nodes,  eids