class_docstr: Tests reading from local workers if `target_workers` is `local`.
code: def testInconsistentTargetWorkers(self):
      cluster = multi_process_cluster.MultiProcessCluster(
          num_local_workers=3, num_remote_workers=3
      )
      ds = dataset_ops.Dataset.range(10)
      datasets = [
          self.make_distributed_dataset(
              ds,
              cluster,
              job_name="test_job",
              target_workers=target_workers,
          )
          for target_workers in ["AUTO", "ANY", "LOCAL"]
      ]
  
      with self.assertRaisesRegex(
          errors.InvalidArgumentError,
          "but found an existing job with different parameters: "
          "Existing target workers: <AUTO>",
      ):
          for dataset in datasets:
              self.getDatasetOutput(dataset)
  
imports: import multiprocessing
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.kernel_tests.service import multi_process_cluster
  from tensorflow.python.data.experimental.kernel_tests.service import test_base
  from tensorflow.python.data.experimental.ops import data_service_ops
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
label_desc: Use image node_id 11 for calling the LocalWorkersTest obj's underlying member method code with example usage: obj.testInconsistentTargetWorkers() without return types