def model_gpu_config(request):
    """
    Evaluate the test run parameters to build config for models that may or may
    not use the GPU.
    """
    gpu_config = {}
    if request.config.getoption("use_gpu"):
        gpu_config["use_gpu"] = True
        gpu_config["nvidia_visible_devices"] = request.config.getoption(
            "nvidia_visible_devices"
        )

    return gpu_config