code: def serialize(activation):
      fn_config = serialization_lib.serialize_keras_object(activation)
      if "config" not in fn_config:
          raise ValueError(
              f"Unknown activation function '{activation}' cannot be "
              "serialized due to invalid function name. Make sure to use "
              "an activation name that matches the references defined in "
              "activations.py or use "
              "`@keras.saving.register_keras_serializable()`"
              "to register any custom activations. "
              f"config={fn_config}"
          )
      if not isinstance(activation, types.FunctionType):
          # Case for additional custom activations represented by objects
          return fn_config
      if (
          isinstance(fn_config["config"], str)
          and fn_config["config"] not in globals()
      ):
          # Case for custom activation functions from external activations modules
          fn_config["config"] = object_registration.get_registered_name(
              activation
          )
          return fn_config
      # Case for keras.activations builtins (simply return name)
      return fn_config["config"]
  
imports: import types
  from keras.activations.activations import elu
  from keras.activations.activations import exponential
  from keras.activations.activations import gelu
  from keras.activations.activations import hard_sigmoid
  from keras.activations.activations import hard_silu
  from keras.activations.activations import leaky_relu
  from keras.activations.activations import linear
  from keras.activations.activations import log_softmax
  from keras.activations.activations import mish
  from keras.activations.activations import relu
  from keras.activations.activations import relu6
  from keras.activations.activations import selu
  from keras.activations.activations import sigmoid
  from keras.activations.activations import silu
  from keras.activations.activations import softmax
  from keras.activations.activations import softplus
  from keras.activations.activations import softsign
  from keras.activations.activations import tanh
  from keras.api_export import keras_export
  from keras.saving import object_registration
  from keras.saving import serialization_lib
label_desc: Use image node_id 1 for calling a global function with example usage: serialize(activation) and returns: fn_config, fn_config, fn_config