code: def testSampleFromDatasetsAllWeightsAreZero(self):
      # Sampling skips both datasets.
      weights = np.asarray([0.0, 0.0])
      datasets = [
          dataset_ops.Dataset.from_tensors(-1).repeat(),
          dataset_ops.Dataset.from_tensors(1).repeat(),
      ]
      sample_dataset = dataset_ops.Dataset.sample_from_datasets(
          datasets, weights=weights, stop_on_empty_dataset=False
      )
      self.assertDatasetProduces(sample_dataset, [])
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.compat import compat
  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.eager import def_function
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the SampleFromDatasetsTest obj's underlying member method code with example usage: obj.testSampleFromDatasetsAllWeightsAreZero() without return types