def METHOD_NAME(self):
    config = {
        "input_dim": self.input_dim,
        "output_dim": self.output_dim,
        "embeddings_initializer": tf.keras.initializers.serialize(
            self.embeddings_initializer
        ),
        "embeddings_regularizer": tf.keras.regularizers.serialize(
            self.embeddings_regularizer
        ),
        "embeddings_constraint": tf.keras.constraints.serialize(
            self.embeddings_constraint
        ),
        "mask_zero": self.mask_zero,
        "combiner": self.combiner,
    }
    base_config = super(EmbeddingBag, self).METHOD_NAME()
    return dict(list(base_config.items()) + list(config.items()))