code: def get_edges_by_etype(edges, etype):
      return [e for e in edges if edge_attrs(e)["etype"] == etype]
  
file_path: dgl/tests/python/common/test_convert.py
imports: import unittest
  import backend
  import dgl
  from utils import parametrize_idtype
label_desc: Use image node_id 3 for calling a global function with example usage: get_edges_by_etype(edges, etype) and returns: unknown