code: def test_graphsage_constructor_1():
      gs = GraphSAGE(
          layer_sizes=[4, 6, 8],
          n_samples=[2, 4, 6],
          input_dim=2,
          multiplicity=1,
          bias=True,
          dropout=0.5,
      )
      assert gs.dims == [2, 4, 6, 8]
      assert gs.n_samples == [2, 4, 6]
      assert gs.max_hops == 3
      assert gs.bias
      assert len(gs._aggs) == 3
  
imports: from tensorflow import keras
  from tensorflow.keras import initializers, regularizers
  import tensorflow
  import numpy
  import pytest
  from stellargraph.mapper import GraphSAGENodeGenerator
  from stellargraph.layer.graphsage import GraphSAGE, MeanAggregator, MaxPoolingAggregator, MeanPoolingAggregator, AttentionalAggregator
  from ..test_utils.graphs import example_graph
  from ..None import test_utils
label_desc: Use image node_id 22 for calling a global function with example usage: test_graphsage_constructor_1() without return types