code: def check_attr_values_for_nodes(nodes, attr_name, values):
      return F.allclose(
          F.stack([v[attr_name] for v in nodes.values()], 0), values
      )
  
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 5 for calling a global function with example usage: check_attr_values_for_nodes(nodes, attr_name, values) and returns: F