code: def _test_get_config(layer, **kwargs):
      layer_instance = layer(**kwargs)
      config = layer_instance.get_config()
      layer_instance_new = layer(**config)
      config_new = layer_instance_new.get_config()
      config.pop("name")
      config_new.pop("name")
  
      # Remove 'name' if we have advanced activations (needed for GeneralConv)
      if (
          "activation" in config
          and isinstance(config["activation"], dict)
          and "class_name" in config["activation"]
      ):
          config["activation"]["config"].pop("name")
          config_new["activation"]["config"].pop("name")
  
      assert config_new == config
  
file_path: spektral/tests/test_layers/convolutional/core.py
imports: import itertools
  import numpy
  import tensorflow
  from tensorflow.keras import Input, Model
  from spektral.utils.sparse import sp_matrix_to_sp_tensor
label_desc: Use image node_id 4 for calling a global function with example usage: _test_get_config(layer) without return types