code: def test_device_out_of_range(driver, device):
      """
      测试传入的device超过范围的情况
      """
      model = OneflowNormalModel_Classification_1(20, 10)
      with pytest.raises(ValueError):
          driver = initialize_oneflow_driver(driver, device, model)
  
file_path: fastNLP/tests/core/drivers/oneflow_driver/test_initialize_oneflow_driver.py
imports: import pytest
  from fastNLP.core.drivers import OneflowSingleDriver, OneflowDDPDriver
  from fastNLP.core.drivers.oneflow_driver.initialize_oneflow_driver import initialize_oneflow_driver
  from tests.helpers.models.oneflow_model import OneflowNormalModel_Classification_1
  from tests.helpers.utils import magic_argv_env_context
  from fastNLP.envs.imports import _NEED_IMPORT_ONEFLOW
label_desc: Use image node_id 4 for calling a global function with example usage: test_device_out_of_range(driver, device) without return types