code: def testChooseFromDatasets(self):
      words = [b"foo", b"bar", b"baz"]
      datasets = [
          dataset_ops.Dataset.from_tensors(w).repeat() for w in words
      ]
      choice_array = np.random.randint(3, size=(15,), dtype=np.int64)
      choice_dataset = dataset_ops.Dataset.from_tensor_slices(
          choice_array
      )
      dataset = dataset_ops.Dataset.choose_from_datasets(
          datasets, choice_dataset
      )
      next_element = self.getNext(dataset)
      for i in choice_array:
          self.assertEqual(words[i], self.evaluate(next_element()))
      with self.assertRaises(errors.OutOfRangeError):
          self.evaluate(next_element())
  
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 1 for calling the ChooseFromDatasetsTest obj's underlying member method code with example usage: obj.testChooseFromDatasets() without return types