from typing import Any


def mandatory(val: Any) -> Any:
    """Raises a ValueError if the provided input is None, otherwise returns it"""
    if (val is None):
        raise ValueError("Missing mandatory configuration value")
    return val