code: def test_auto_detected_more_than_visible(
      mock_get_num_accelerators, monkeypatch, shutdown_only
  ):
      # Test more neuron_cores are detected than visible.
      monkeypatch.setenv("NEURON_RT_VISIBLE_CORES", "0,1,2")
      ray.init()
      mock_get_num_accelerators.called
      assert ray.available_resources()["neuron_cores"] == 3
  
file_path: ray/python/ray/tests/accelerators/test_neuron.py
imports: import os
  import sys
  import subprocess
  import pytest
  from unittest.mock import patch
  import ray
  from ray._private.accelerators import NeuronAcceleratorManager
label_desc: Use image node_id 2 for calling a global function with example usage: test_auto_detected_more_than_visible(mock_get_num_accelerators, monkeypatch, shutdown_only) without return types