def METHOD_NAME(cls, config: Dict[str, Any]) -> "StageDescriptor":
    """
    Creates the object from its config.
    """
    train_dims = config.get(cls._state_names.TRAIN_DIMS, ["kernel"])
    kwargs = {
        cls._state_names.TRAIN_DIMS: [ElasticityDim(dim) for dim in train_dims],
        cls._state_names.EPOCHS: config.get(cls._state_names.EPOCHS, 1),
        cls._state_names.REORG_WEIGHTS: config.get(cls._state_names.REORG_WEIGHTS, False),
        cls._state_names.WIDTH_INDICATOR: config.get(cls._state_names.WIDTH_INDICATOR, 1),
        cls._state_names.DEPTH_INDICATOR: config.get(cls._state_names.DEPTH_INDICATOR, 1),
        cls._state_names.BN_ADAPT: config.get(cls._state_names.BN_ADAPT, False),
        cls._state_names.INIT_LR: config.get(cls._state_names.INIT_LR, None),
        cls._state_names.EPOCHS_LR: config.get(cls._state_names.EPOCHS_LR, None),
        cls._state_names.SAMPLE_RATE: config.get(cls._state_names.SAMPLE_RATE, 1),
    }
    return cls(**kwargs)