class_docstr: Unit tests for :func:`networkx.generators.lattice.grid_2d_graph`
code: def test_exceptions(self):
      pytest.raises(nx.NetworkXError, nx.grid_2d_graph, -3, 2)
      pytest.raises(nx.NetworkXError, nx.grid_2d_graph, 3, -2)
      pytest.raises(TypeError, nx.grid_2d_graph, 3.3, 2)
      pytest.raises(TypeError, nx.grid_2d_graph, 3, 2.2)
  
imports: from itertools import product
  import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 9 for calling the TestGrid2DGraph obj's underlying member method code with example usage: obj.test_exceptions() without return types