code: def testDeviceDetailsErrors(self):
      logical_devices = config.list_logical_devices()
      with self.assertRaisesRegex(
          ValueError, "must be a tf.config.PhysicalDevice"
      ):
          config.get_device_details(logical_devices[0])
  
      phys_dev = context.PhysicalDevice(
          "/physical_device:CPU:100", "CPU"
      )
      with self.assertRaisesRegex(
          ValueError,
          "The PhysicalDevice must be one obtained from "
          "calling `tf.config.list_physical_devices`",
      ):
          config.get_device_details(phys_dev)
  
imports: from absl.testing import parameterized
  from tensorflow.core.protobuf import cluster_pb2
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.core.protobuf import tensorflow_server_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import config
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 6 for calling the DeviceTest obj's underlying member method code with example usage: obj.testDeviceDetailsErrors() without return types