class_docstr: Implementation of GraphSage.
      
code: def __init__(
      self,
      input_size,
      num_class,
      num_layers=1,
      hidden_size=64,
      dropout=0.5,
      **kwargs,
  ):
      super(GraphSage, self).__init__()
      self.num_class = num_class
      self.num_layers = num_layers
      self.hidden_size = hidden_size
      self.dropout = dropout
      self.convs = nn.LayerList()
      self.linear = nn.Linear(self.hidden_size, self.num_class)
      for i in range(self.num_layers):
          self.convs.append(
              SageConv(
                  input_size if i == 0 else hidden_size, hidden_size
              )
          )
  
file_path: PGL/examples/gnn_depoly/models/graphsage.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from .base_conv import BaseConv
label_desc: Use image node_id 1 to create a new GraphSage object from inherited base classes: nn with example: obj = GraphSage(input_size, num_class, num_layers, hidden_size, dropout)