def METHOD_NAME(enabled: bool, path: Path, metrics_log_interval: int, config: Dict[str, Any]) -> None:
    if "beta" not in config:
        config["beta"] = {}
    config["beta"].update(
        {
            "enabled": enabled,
            "path": str(path),
            "metrics_log_interval": metrics_log_interval,
        }
    )