code: def check_attrs_for_edges(edges, attrs):
      return all(edge_attrs(e).keys() == attrs for e in edges)
  
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 6 for calling a global function with example usage: check_attrs_for_edges(edges, attrs) and returns: all