code: def serialize_kwarg(key, attr):
      if key.endswith("_initializer"):
          return initializers.serialize(attr)
      if key.endswith("_regularizer"):
          return regularizers.serialize(attr)
      if key.endswith("_constraint"):
          return constraints.serialize(attr)
      if key == "activation":
          return activations.serialize(attr)
      if key == "use_bias":
          return attr
  
imports: from tensorflow.keras import activations, constraints, initializers, regularizers
label_desc: Use image node_id 4 for calling a global function with example usage: serialize_kwarg(key, attr) and returns: initializers, regularizers, constraints, activations, attr