code: def _boolean_dataset_fn():
      # First four batches of labels, predictions: {TP, FP, TN, FN}
      # with a threshold of 0.5:
      #   T, T -> TP;  F, T -> FP;   T, F -> FN
      #   F, F -> TN;  T, T -> TP;   F, T -> FP
      #   T, F -> FN;  F, F -> TN;   T, T -> TP
      #   F, T -> FP;  T, F -> FN;   F, F -> TN
      return (
          dataset_ops.Dataset.from_tensor_slices(
              {
                  "labels": [True, False, True, False],
                  "predictions": [True, True, False, False],
              }
          )
          .repeat()
          .batch(3, drop_remainder=True)
      )
  
imports: from absl.testing import parameterized
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import strategy_combinations
  from tensorflow.python.distribute import strategy_test_lib
  from tensorflow.python.eager import test
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import metrics
  from tensorflow.python.ops import variables
label_desc: Use image node_id 2 for calling a global function with example usage: _boolean_dataset_fn() and returns: dataset_ops