code: def run_check_fn(check_class) -> Callable:
      def run(self, cache, dataset_name):
          context = cache[dataset_name]
          check = check_class()
          try:
              if isinstance(check, SingleDatasetCheck):
                  check.run_logic(context, DatasetKind.TRAIN)
              else:
                  check.run_logic(context)
          except DeepchecksBaseError:
              pass
  
      return run
  
file_path: deepchecks/benchmarks/tabular_bench.py
imports: import inspect
  from typing import Callable
  from deepchecks.core import DatasetKind
  from deepchecks.core.errors import DeepchecksBaseError
  from deepchecks.tabular import Context, SingleDatasetCheck, checks
  from deepchecks.tabular.datasets.classification import lending_club
  from deepchecks.tabular.datasets.regression import avocado
label_desc: Use image node_id 1 for calling a global function with example usage: run_check_fn(check_class) and returns: run