def METHOD_NAME(
    self, kwargs: Dict[str, Any], tmp_path: Path
) -> None:
    """Test _validate_runtime_or_docker no runtime if Docker."""
    if "file" in kwargs:
        dockerfile = tmp_path / "Dockerfile"
        dockerfile.touch()  # file has to exist
        kwargs["file"] = dockerfile
    obj = AwsLambdaHookArgs(
        bucket_name="test-bucket",
        docker=DockerOptions.parse_obj(kwargs),
        source_code=tmp_path,
    )
    assert not obj.runtime