code: def _test_combinations():
      cases = []
  
      take_all = lambda x: constant_op.constant(True)
      is_zero = lambda x: math_ops.equal(x, 0)
      greater = lambda x: math_ops.greater(x + 5, 0)
      predicates = [take_all, is_zero, greater]
      for i, x in enumerate(predicates):
          for j, y in enumerate(predicates):
              cases.append(
                  (lambda x: x, "Scalar{}{}".format(i, j), [x, y])
              )
              for k, z in enumerate(predicates):
                  cases.append(
                      (
                          lambda x: x,
                          "Scalar{}{}{}".format(i, j, k),
                          [x, y, z],
                      )
                  )
  
      take_all = lambda x, y: constant_op.constant(True)
      is_zero = lambda x, y: math_ops.equal(
          x * math_ops.cast(y, dtypes.int64), 0
      )
  
      cases.append((lambda x: (x, x), "Tuple1", [take_all, take_all]))
      cases.append((lambda x: (x, 2), "Tuple2", [take_all, is_zero]))
  
      def reduce_fn(x, y):
          function, name, predicates = y
          return x + combinations.combine(
              function=function,
              predicates=combinations.NamedObject(name, predicates),
          )
  
      return functools.reduce(reduce_fn, cases, [])
  
file_path: tensorflow/tensorflow/python/data/experimental/kernel_tests/optimization/filter_fusion_test.py
imports: import functools
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.ops import testing
  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.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: _test_combinations() and returns: functools, unknown