code: def test_autodetect_num_tpus_accel(mock_glob):
      mock_glob.return_value = [
          "/dev/accel0",
          "/dev/accel1",
          "/dev/accel2",
          "/dev/accel3",
      ]
      assert (
          TPUAcceleratorManager.get_current_node_num_accelerators() == 4
      )
  
imports: import os
  import sys
  import mock
  import pytest
  import requests
  from unittest.mock import patch
  import ray
  from ray._private.accelerators import TPUAcceleratorManager
  from ray._private.accelerators import tpu
label_desc: Use image node_id 1 for calling a global function with example usage: test_autodetect_num_tpus_accel(mock_glob) without return types