docstr: Tests unpad(pad) is identity with random graphs.
docstr_tok: ["Tests","unpad","(","pad",")","is","identity","with","random","graphs","."]
code: def test_pad_unpad_with_random_graphs(
      self, include_globals, include_nodes, include_edges
  ):
      """Tests unpad(pad) is identity with random graphs."""
      np.random.seed(42)
      for _ in range(100):
          g = _get_random_graph(
              include_globals=include_globals,
              include_node_features=include_nodes,
              include_edge_features=include_edges,
          )
          jax.tree_util.tree_map(
              np.testing.assert_allclose,
              utils.unpad_with_graphs(
                  utils.pad_with_graphs(g, 101, 200, 11)
              ),
              g,
          )
  
imports: import functools
  import os
  from absl.testing import absltest
  from absl.testing import parameterized
  import jax
  from jax.lib import xla_bridge
  import jax.numpy
  import jax.tree_util
  from jraph._src import graph
  from jraph._src import utils
  import numpy
label_desc: Use image node_id 8 for calling the GraphTest obj's underlying member method code with example usage: obj.test_pad_unpad_with_random_graphs(include_globals, include_nodes, include_edges) without return types