code: def _filter_params(params):
      for param in params:
          if (
              "expected_len" in param
              and isinstance(param["get_examples_indices"], list)
              and any(
                  param["expected_len"] <= index
                  for index in param["get_examples_indices"]
              )
          ):
              continue
  
          if (
              "expected_keys" in param
              and isinstance(param["get_examples_key_indices"], tuple)
              and any(
                  len(param["expected_keys"]) <= key_index
                  for key_index in param["get_examples_key_indices"]
              )
          ):
              continue
  
          # To reduce the number of tests,
          # drop combinations of indices and keys.
          # (check only `slice[indices]` and `slice[:, keys]`)
          if not (
              param["indices"] == slice(None)
              and param["get_examples_indices"] is None
          ) and not (
              param["keys"] is None
              and param["get_examples_key_indices"] is None
          ):
              continue
  
          yield param
  
file_path: chainer/tests/chainer_tests/dataset_tests/tabular_tests/test_slice.py
imports: import unittest
  import warnings
  import numpy
  import six
  import chainer
  from chainer import testing
  from chainer_tests.dataset_tests.tabular_tests import dummy_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: _filter_params(params) without return types