code: def test_edge_label_informativeness(idtype):
      # IfChangeThenChange: python/dgl/label_informativeness.py
      # Update the docstring example.
      device = F.ctx()
      graph = dgl.graph(
          ([0, 1, 2, 2, 3, 4], [1, 2, 0, 3, 4, 5]),
          idtype=idtype,
          device=device,
      )
      y = F.tensor([0, 0, 0, 0, 1, 1])
      assert math.isclose(
          dgl.edge_label_informativeness(graph, y),
          0.25177597999572754,
          abs_tol=1e-6,
      )
  
imports: import math
  import unittest
  import backend
  import dgl
  from utils import parametrize_idtype
label_desc: Use image node_id 1 for calling a global function with example usage: test_edge_label_informativeness(idtype) without return types