code: def test_graphsage_passing_activations():
      gs = GraphSAGE(
          layer_sizes=[4], n_samples=[2], input_dim=2, multiplicity=1
      )
      assert gs.activations == ["linear"]
  
      gs = GraphSAGE(
          layer_sizes=[4, 4],
          n_samples=[2, 2],
          input_dim=2,
          multiplicity=1,
      )
      assert gs.activations == ["relu", "linear"]
  
      gs = GraphSAGE(
          layer_sizes=[4, 4, 4],
          n_samples=[2, 2, 2],
          input_dim=2,
          multiplicity=1,
      )
      assert gs.activations == ["relu", "relu", "linear"]
  
      with pytest.raises(ValueError):
          GraphSAGE(
              layer_sizes=[4, 4, 4],
              n_samples=[2, 2, 2],
              input_dim=2,
              multiplicity=1,
              activations=["relu"],
          )
  
      with pytest.raises(ValueError):
          GraphSAGE(
              layer_sizes=[4, 4, 4],
              n_samples=[2, 2, 2],
              input_dim=2,
              multiplicity=1,
              activations=["relu"] * 2,
          )
  
      with pytest.raises(ValueError):
          GraphSAGE(
              layer_sizes=[4, 4, 4],
              n_samples=[2, 2, 2],
              input_dim=2,
              multiplicity=1,
              activations=["fred", "wilma", "barney"],
          )
  
      gs = GraphSAGE(
          layer_sizes=[4, 4, 4],
          n_samples=[2, 2, 2],
          input_dim=2,
          multiplicity=1,
          activations=["linear"] * 3,
      )
      assert gs.activations == ["linear"] * 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 27 for calling a global function with example usage: test_graphsage_passing_activations() without return types