code: def __init__(
      self,
      g,
      in_feats,
      n_hidden,
      n_classes,
      n_layers,
      activation,
      dropout,
      aggregator_type,
  ):
      super(GraphSAGE, self).__init__()
      self.g = g
  
      with self.name_scope():
          self.layers = nn.Sequential()
          # input layer
          self.layers.add(
              SAGEConv(
                  in_feats,
                  n_hidden,
                  aggregator_type,
                  feat_drop=dropout,
                  activation=activation,
              )
          )
          # hidden layers
          for i in range(n_layers - 1):
              self.layers.add(
                  SAGEConv(
                      n_hidden,
                      n_hidden,
                      aggregator_type,
                      feat_drop=dropout,
                      activation=activation,
                  )
              )
          # output layer
          self.layers.add(
              SAGEConv(
                  n_hidden,
                  n_classes,
                  aggregator_type,
                  feat_drop=dropout,
                  activation=None,
              )
          )
  
file_path: dgl/examples/mxnet/graphsage/main.py
imports: import argparse
  import time
  import dgl
  import mxnet
  import networkx
  import numpy
  from dgl.data import CiteseerGraphDataset, CoraGraphDataset, PubmedGraphDataset, register_data_args
  from dgl.nn.mxnet.conv import SAGEConv
  from mxnet import gluon, nd
  from mxnet.gluon import nn
label_desc: Use image node_id 1 to create a new GraphSAGE object from inherited base classes: nn with example: obj = GraphSAGE(g, in_feats, n_hidden, n_classes, n_layers, activation, dropout, aggregator_type)