code: def test_device_out_of_range(device):
      """
      测试传入的device超过范围的情况
      """
      model = PaddleNormalModel_Classification_1(20, 10)
      with pytest.raises(ValueError):
          driver = initialize_paddle_driver("paddle", device, model)
  
file_path: fastNLP/tests/core/drivers/paddle_driver/test_initialize_paddle_driver.py
imports: import os
  import pytest
  from fastNLP.core.drivers import PaddleSingleDriver, PaddleFleetDriver
  from fastNLP.core.drivers.paddle_driver.initialize_paddle_driver import initialize_paddle_driver
  from fastNLP.envs import get_gpu_count
  from tests.helpers.models.paddle_model import PaddleNormalModel_Classification_1
  from tests.helpers.utils import magic_argv_env_context
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
label_desc: Use image node_id 4 for calling a global function with example usage: test_device_out_of_range(device) without return types