class_docstr: Tests for mesh_util that require accelerator initialization.
class_docstr_tok: ["Tests","for","mesh_util","that","require","accelerator","initialization","."]
code: def test_initialize_after_tensorflow_with_reset(self):
      accelerator_util.shutdown_accelerator_system()
      test_util.reset_logical_devices("CPU", 32)
      context.ensure_initialized()
  
      with self.assertLogs(level="WARNING") as log:
          accelerator_util.initialize_accelerator_system(
              "CPU", experimental_reset_context=True
          )
  
      self.assertIn("experimental_reset_context", log[0][0].message)
      # Preserves the original logical device setting.
      self.assertLen(test_util.list_local_logical_devices("CPU"), 32)
  
imports: import os
  from unittest import mock
  from absl.testing import parameterized
  from tensorflow.dtensor.python import accelerator_util
  from tensorflow.dtensor.python import config
  from tensorflow.dtensor.python import mesh_util
  from tensorflow.dtensor.python.tests import test_util
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import device
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the InitializedMeshUtilTest obj's underlying member method code with example usage: obj.test_initialize_after_tensorflow_with_reset() without return types