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_mesh_creation(self):
      self.skipForDeviceType(
          ["TPU"], reason="Test is intended for CPUs and GPUs."
      )
      mesh = mesh_util.create_mesh()
      num_devices = len(
          test_util.list_local_logical_devices(mesh.device_type())
      )
      self.assertEqual(mesh.num_local_devices(), num_devices)
      self.assertEqual(mesh.size, num_devices)
  
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 1 for calling the MeshUtilTest obj's underlying member method code with example usage: obj.test_mesh_creation() without return types