code: def test_accelerators():
      assert accelerators.NVIDIA_TESLA_K80 == "K80"
      assert accelerators.NVIDIA_A100 == "A100"
      with pytest.raises(
          AttributeError,
          match="module 'ray.util.accelerators' has no attribute 'NVIDIA_INVALID'",
      ):
          accelerators.NVIDIA_INVALID
      with pytest.warns(RayDeprecationWarning):
          assert accelerators.NVIDIA_TESLA_A100 == "A100"
  
imports: import os
  import sys
  import pytest
  from ray.util import accelerators
  from ray.util.annotations import RayDeprecationWarning
label_desc: Use image node_id 1 for calling a global function with example usage: test_accelerators() without return types