class_docstr: Generates two-dimensional grid graphs.
  See :meth:`~torch_geometric.utils.grid` for more information.
  
  Args:
      height (int): The height of the grid.
      width (int): The width of the grid.
      dtype (:obj:`torch.dtype`, optional): The desired data type of the
          returned position tensor. (default: :obj:`None`)
code: def __init__(
      self,
      height: int,
      width: int,
      dtype: Optional[torch.dtype] = None,
  ):
      super().__init__()
      self.height = height
      self.width = width
      self.dtype = dtype
  
file_path: pytorch_geometric/torch_geometric/datasets/graph_generator/grid_graph.py
imports: from typing import Optional
  import torch
  from torch_geometric.data import Data
  from torch_geometric.datasets.graph_generator import GraphGenerator
  from torch_geometric.utils import grid
label_desc: Use image node_id 1 to create a new GridGraph object from inherited base classes: GraphGenerator with example: obj = GridGraph(height, width, dtype)