code: def test_batch_basic(self):
      (
          G,
          x,
          y,
          edge_x,
          edge_y,
          edge_index,
          graph_x,
          graph_y,
      ) = simple_networkx_graph()
      Graph.add_edge_attr(G, "edge_feature", edge_x)
      Graph.add_edge_attr(G, "edge_label", edge_y)
      Graph.add_node_attr(G, "node_feature", x)
      Graph.add_node_attr(G, "node_label", y)
      Graph.add_graph_attr(G, "graph_feature", graph_x)
      Graph.add_graph_attr(G, "graph_label", graph_y)
      H = deepcopy(G)
      graphs = [Graph(G), Graph(H)]
      batch = Batch.from_data_list(graphs)
      self.assertEqual(batch.num_graphs, 2)
      self.assertEqual(
          len(batch.node_feature),
          2 * len(graphs[0].node_feature),
      )
  
file_path: deepsnap/tests/test_batch.py
imports: import math
  import unittest
  from copy import deepcopy
  import torch
  import networkx
  from torch.utils.data import DataLoader
  from torch_geometric.datasets import TUDataset
  from deepsnap.graph import Graph
  from deepsnap.batch import Batch
  from deepsnap.dataset import GraphDataset
  from tests.utils import simple_networkx_graph
label_desc: Use image node_id 1 for calling the TestBatch obj's underlying member method code with example usage: obj.test_batch_basic() without return types