class_docstr: Tests for mesh_util that do not require accelerator initialization.
class_docstr_tok: ["Tests","for","mesh_util","that","do","not","require","accelerator","initialization","."]
code: def test_single_client_mesh_with_local_devices(self):
      self.skipForDeviceType(
          ["GPU", "TPU"], reason="Test is intended for CPUs"
      )
      with mock.patch.object(
          accelerator_util, "is_initialized"
      ) as is_initialized:
          is_initialized.return_value = True
          mesh = mesh_util.create_distributed_mesh(
              mesh_name="single_client_1d_mesh",
              mesh_dims=[("x", 1)],
              local_devices=["CPU:0"],
          )
          self.assertEqual(mesh.num_local_devices(), 1)
          self.assertEqual(mesh.size, 1)
  
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 9 for calling the MeshUtilTest obj's underlying member method code with example usage: obj.test_single_client_mesh_with_local_devices() without return types