code: def _test_get_classes_combinations():
      cases = [
          ("TestCase_0", lambda: (), lambda: ()),
          (
              "TestCase_1",
              lambda: sparse_tensor.SparseTensor(
                  indices=[[0]], values=[1], dense_shape=[1]
              ),
              lambda: sparse_tensor.SparseTensor,
          ),
          (
              "TestCase_2",
              lambda: constant_op.constant([1]),
              lambda: tensor.Tensor,
          ),
          (
              "TestCase_3",
              lambda: (
                  sparse_tensor.SparseTensor(
                      indices=[[0]], values=[1], dense_shape=[1]
                  )
              ),
              lambda: (sparse_tensor.SparseTensor),
          ),
          (
              "TestCase_4",
              lambda: (constant_op.constant([1])),
              lambda: (tensor.Tensor),
          ),
          (
              "TestCase_5",
              lambda: (
                  sparse_tensor.SparseTensor(
                      indices=[[0]], values=[1], dense_shape=[1]
                  ),
                  (),
              ),
              lambda: (sparse_tensor.SparseTensor, ()),
          ),
          (
              "TestCase_6",
              lambda: (
                  (),
                  sparse_tensor.SparseTensor(
                      indices=[[0]], values=[1], dense_shape=[1]
                  ),
              ),
              lambda: ((), sparse_tensor.SparseTensor),
          ),
          (
              "TestCase_7",
              lambda: (constant_op.constant([1]), ()),
              lambda: (tensor.Tensor, ()),
          ),
          (
              "TestCase_8",
              lambda: ((), constant_op.constant([1])),
              lambda: ((), tensor.Tensor),
          ),
          (
              "TestCase_9",
              lambda: (
                  sparse_tensor.SparseTensor(
                      indices=[[0]], values=[1], dense_shape=[1]
                  ),
                  (),
                  constant_op.constant([1]),
              ),
              lambda: (sparse_tensor.SparseTensor, (), tensor.Tensor),
          ),
          (
              "TestCase_10",
              lambda: (
                  (),
                  sparse_tensor.SparseTensor(
                      indices=[[0]], values=[1], dense_shape=[1]
                  ),
                  (),
              ),
              lambda: ((), sparse_tensor.SparseTensor, ()),
          ),
          (
              "TestCase_11",
              lambda: ((), constant_op.constant([1]), ()),
              lambda: ((), tensor.Tensor, ()),
          ),
      ]
  
      def reduce_fn(x, y):
          name, classes_fn, expected_fn = y
          return x + combinations.combine(
              classes_fn=combinations.NamedObject(
                  "classes_fn.{}".format(name), classes_fn
              ),
              expected_fn=combinations.NamedObject(
                  "expected_fn.{}".format(name), expected_fn
              ),
          )
  
      return functools.reduce(reduce_fn, cases, [])
  
imports: import functools
  from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.util import nest
  from tensorflow.python.data.util import sparse
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling a global function with example usage: _test_get_classes_combinations() and returns: functools, unknown