code: def test_hash_accelerator_devices(self):
      if xla_extension_version < 209 and xla_bridge.using_pjrt_c_api():
          raise unittest.SkipTest("PjRt C API not yet supported.")
  
      devices = np.array([[jax.local_devices()[0]]])
  
      dev_hash1 = self.get_hashed_value(
          cache_key._hash_devices, devices
      )
      dev_hash2 = self.get_hashed_value(
          cache_key._hash_devices, devices
      )
      self.assertEqual(dev_hash1, dev_hash2)
  
      acc_hash1 = self.get_hashed_value(
          cache_key._hash_accelerator_config,
          devices,
          xla_bridge.get_backend(),
      )
      acc_hash2 = self.get_hashed_value(
          cache_key._hash_accelerator_config,
          devices,
          xla_bridge.get_backend(),
      )
      self.assertEqual(acc_hash1, acc_hash2)
  
imports: import hashlib
  import os
  import sys
  import unittest
  import numpy
  from absl.testing import absltest
  from absl.testing import parameterized
  import jax
  from jax import lax
  from jax._src import cache_key
  from jax._src import compiler
  from jax._src import config
  from jax._src import test_util
  from jax._src import xla_bridge
  from jax._src.lib import xla_client
  from jax._src.lib import xla_extension_version
label_desc: Use image node_id 2 for calling the CacheKeyTest obj's underlying member method code with example usage: obj.test_hash_accelerator_devices() without return types