"""Auto-generated stub for module: schedulers."""
from typing import Any

# Constants
logger: Any

# Functions
def build_scheduler(optimizer: Any.Any, config: Any) -> Any | None:
    """
    Construct the LR scheduler specified in *config*.
    
        Returns ``None`` when ``config.scheduler`` is unset, giving a
        constant learning rate.
    
        For known names (StepLR, CosineAnnealingLR, ExponentialLR) a base
        kwargs dict is built from ``config`` fields.
        ``config.scheduler_kwargs`` is merged on top, so explicit user
        values always win.
    
        For any other name the class is looked up dynamically from
        ``torch.optim.lr_scheduler`` and only ``config.scheduler_kwargs``
        is forwarded.
    
        Args:
            optimizer: The optimizer whose LR will be scheduled.
            config: Training configuration.
    
        Returns:
            A configured scheduler, or ``None`` for constant LR.
    
        Raises:
            ValueError: If the scheduler name cannot be resolved.
    """
    ...
