class_docstr: Unit tests for :func:`networkx.generators.lattice.grid_2d_graph`
code: def test_node_input(self):
      G = nx.grid_2d_graph(4, 2, periodic=True)
      H = nx.grid_2d_graph(range(4), range(2), periodic=True)
      assert nx.is_isomorphic(H, G)
      H = nx.grid_2d_graph("abcd", "ef", periodic=True)
      assert nx.is_isomorphic(H, G)
      G = nx.grid_2d_graph(5, 6)
      H = nx.grid_2d_graph(range(5), range(6))
      assert edges_equal(H, G)
  
imports: from itertools import product
  import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 10 for calling the TestGrid2DGraph obj's underlying member method code with example usage: obj.test_node_input() without return types