code: def _assert_is_identical_batchedgraph(bg1, bg2):
      assert_is_identical(bg1, bg2)
      assert bg1.batch_size == bg2.batch_size
      assert bg1.batch_num_nodes == bg2.batch_num_nodes
      assert bg1.batch_num_edges == bg2.batch_num_edges
  
imports: import io
  import pickle
  import unittest
  import backend
  import dgl
  import dgl.function
  import networkx
  import pytest
  import scipy.sparse
  from dgl.graph_index import create_graph_index
  from dgl.utils import toindex
  from utils import assert_is_identical, assert_is_identical_hetero, check_graph_equal, get_cases, parametrize_idtype
label_desc: Use image node_id 2 for calling a global function with example usage: _assert_is_identical_batchedgraph(bg1, bg2) without return types