code: def testLogicalCPUs(self):
      # TODO(b/273484131): Causing segmentation fault.
      if (
          test.is_gpu_available()
          and sys.version_info.major == 3
          and sys.version_info.minor == 8
      ):
          self.skipTest(
              "Causing segmentation fault in Python 3.8 / GPU"
          )
      context._reset_context()
      test_util.set_logical_devices_to_at_least("CPU", 3)
      cpu_device = config.list_physical_devices("CPU")[0]
      self.assertLen(
          config.get_logical_device_configuration(cpu_device), 3
      )
  
imports: import sys
  from absl.testing import parameterized
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import strategy_combinations
  from tensorflow.python.distribute import test_util
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
label_desc: Use image node_id 1 for calling the LogicalDevicesTest obj's underlying member method code with example usage: obj.testLogicalCPUs() without return types