code: def _test_combinations():
      def assert_greater(x):
          assert_op = control_flow_assert.Assert(
              math_ops.greater(x, -1), [x]
          )
          with ops.control_dependencies([assert_op]):
              return x
  
      cases = [
          ("Identity", lambda x: x, True),
          ("Increment", lambda x: x + 1, True),
          ("AssertGreater", assert_greater, True),
      ]
  
      def reduce_fn(x, y):
          name, function, should_optimize = y
          return x + combinations.combine(
              function=combinations.NamedObject(name, function),
              should_optimize=should_optimize,
          )
  
      return functools.reduce(reduce_fn, cases, [])
  
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.framework import ops
  from tensorflow.python.ops import control_flow_assert
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  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, x