from typing import Dict
from typing import Any


async def provider(
    a: int, *, b: float, c: bool, d: int = 1, **_: Dict[str, Any]
) -> Dict[str, Any]:
    """Define an example data provider function for testing."""
    if c:
        return {"value": a + b + d}
    return {"value": a - b + d}