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_creation_wrong_shape(self):
      self.skipForDeviceType(
          ["GPU", "TPU"], reason="Test is intended for CPUs"
      )
      num_devices = len(test_util.list_local_logical_devices("CPU"))
      with mock.patch.object(
          accelerator_util, "is_initialized"
      ) as is_initialized:
          is_initialized.return_value = True
          with self.assertRaisesRegex(
              ValueError, "must be equal to total size of the mesh"
          ):
              mesh_util.create_distributed_mesh(
                  mesh_name="single_client_1d_mesh",
                  mesh_dims=[("x", num_devices * 2)],
              )
  
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 11 for calling the MeshUtilTest obj's underlying member method code with example usage: obj.test_single_client_mesh_creation_wrong_shape() without return types