code: def test_gcn_block(g):
      data_info = {"in_size": 10, "out_size": 7}
  
      blocks = [g]
      node_feat = torch.randn(g.num_src_nodes(), data_info["in_size"])
      edge_feat = torch.abs(torch.randn(g.num_edges()))
      # not use_edge_weight
      model = GCN(data_info, use_edge_weight=False)
      model.forward_block(blocks, node_feat)
  
      # use_edge_weight
      model = GCN(data_info, use_edge_weight=True)
      model.forward_block(blocks, node_feat, edge_feat)
  
file_path: dgl/tests/go/test_model.py
imports: import dgl
  import pytest
  import torch
  from utils.graph_cases import get_cases
  from dglgo.model import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_gcn_block(g) without return types