code: def testChooseFromDatasetsStoppingOnEmptyDataset(self):
      datasets = [
          dataset_ops.Dataset.from_tensors(b"foo").repeat(2),
          dataset_ops.Dataset.from_tensors(b"bar").repeat(),
          dataset_ops.Dataset.from_tensors(b"baz").repeat(),
      ]
      choice_array = np.asarray(
          [0, 0, 0, 1, 1, 1, 2, 2, 2], dtype=np.int64
      )
      choice_dataset = dataset_ops.Dataset.from_tensor_slices(
          choice_array
      )
      dataset = dataset_ops.Dataset.choose_from_datasets(
          datasets, choice_dataset, stop_on_empty_dataset=True
      )
      self.assertDatasetProduces(dataset, [b"foo", b"foo"])
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the ChooseFromDatasetsTest obj's underlying member method code with example usage: obj.testChooseFromDatasetsStoppingOnEmptyDataset() without return types