code: def test_graphsage_passing_regularisers():
      with pytest.raises(ValueError):
          GraphSAGE(
              layer_sizes=[4],
              n_samples=[2],
              input_dim=2,
              multiplicity=1,
              kernel_initializer="fred",
          )
  
      GraphSAGE(
          layer_sizes=[4],
          n_samples=[2],
          input_dim=2,
          multiplicity=1,
          kernel_initializer="ones",
      )
  
      GraphSAGE(
          layer_sizes=[4],
          n_samples=[2],
          input_dim=2,
          multiplicity=1,
          kernel_initializer=initializers.ones(),
      )
  
      GraphSAGE(
          layer_sizes=[4],
          n_samples=[2],
          input_dim=2,
          multiplicity=1,
          kernel_regularizer=regularizers.l2(0.01),
      )
  
      with pytest.raises(ValueError):
          GraphSAGE(
              layer_sizes=[4],
              n_samples=[2],
              input_dim=2,
              multiplicity=1,
              kernel_regularizer="wilma",
          )
  
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 28 for calling a global function with example usage: test_graphsage_passing_regularisers() without return types