code: def test_auto_detect_resources(
      mock_get_num_accelerators, shutdown_only
  ):
      # Test that ray node resources are filled with auto detected count.
      ray.init()
      mock_get_num_accelerators.called
      assert ray.available_resources()["neuron_cores"] == 2
  
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 3 for calling a global function with example usage: test_auto_detect_resources(mock_get_num_accelerators, shutdown_only) without return types