code: def test_user_configured_more_than_visible(
      monkeypatch, call_ray_stop_only
  ):
      # Test more hpus are configured than visible.
      monkeypatch.setenv("HABANA_VISIBLE_MODULES", "0,1,2")
      with pytest.raises(ValueError):
          ray.init(resources={"HPU": 4})
  
file_path: ray/python/ray/tests/accelerators/test_hpu.py
imports: import os
  import sys
  import pytest
  from unittest.mock import patch
  import ray
  from ray._private.accelerators import HPUAcceleratorManager
  from ray._private.accelerators import hpu
label_desc: Use image node_id 1 for calling a global function with example usage: test_user_configured_more_than_visible(monkeypatch, call_ray_stop_only) without return types