code: def _test_combinations():
      def filter_fn(dataset, predicate):
          return dataset.filter(predicate)
  
      def legacy_filter_fn(dataset, predicate):
          return dataset.filter_with_legacy_function(predicate)
  
      filter_combinations = combinations.combine(
          tf_api_version=[1, 2],
          mode=["eager", "graph"],
          apply_filter=combinations.NamedObject("filter_fn", filter_fn),
      )
  
      legacy_filter_combinations = combinations.combine(
          tf_api_version=1,
          mode=["eager", "graph"],
          apply_filter=combinations.NamedObject(
              "legacy_filter_fn", legacy_filter_fn
          ),
      )
  
      return filter_combinations + legacy_filter_combinations
  
imports: from absl.testing import parameterized
  import numpy
  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.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.ops import map_fn
  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: unknown, dataset, dataset