def METHOD_NAME(self, *args: Any, **kwds: Any) -> Optional[Dict[str, object]]:
    config = super().METHOD_NAME(*args, **kwds)
    if config is None:
        raise Exception("Specify local_path XOR secret")
    return config