def METHOD_NAME(cls, config, custom_objects=None):
    cells = []
    for cell_config in config.pop("cells"):
        cells.append(
            serialization_lib.deserialize_keras_object(
                cell_config, custom_objects=custom_objects
            )
        )
    return cls(cells, **config)