def METHOD_NAME(value: str | Mapping[str, str]) -> str | InterpolationValue:
    """Ensure that `value` satisfies the type `InterpolationValue`."""
    if isinstance(value, (str, InterpolationValue)):
        return value
    return InterpolationValue(value)