def METHOD_NAME(batch):
    graph_list = []
    for q, a in batch:
        q = torch.tensor(q, dtype=torch.long)
        a = torch.tensor(a, dtype=torch.long)
        graph = copy(basic_graph)
        graph.ndata["q"] = q  # q means question
        graph.ndata["a"] = a  # a means answer
        graph.ndata["row"] = torch.tensor(rows, dtype=torch.long)
        graph.ndata["col"] = torch.tensor(cols, dtype=torch.long)
        graph_list.append(graph)
    batch_graph = dgl.batch(graph_list)
    return batch_graph