code: def test_config():
      check = DummyCheck(param2=5).config()
  
      assert_that(
          check,
          equal_to(
              {
                  "module_name": f"{DummyCheck.__module__}",
                  "class_name": "DummyCheck",
                  "version": __version__,
                  "params": {
                      "param1": 1,
                      "param2": 5,
                      "n_samples": None,
                  },
              }
          ),
      )
  
      assert_that(BaseCheck.from_config(check), instance_of(DummyCheck))
  
imports: import numpy
  import pandas
  from hamcrest import *
  from deepchecks import __version__
  from deepchecks.core import BaseCheck, CheckResult, ConditionResult
  from deepchecks.core.condition import ConditionCategory
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.tabular import Context, TrainTestCheck
label_desc: Use image node_id 10 for calling a global function with example usage: test_config() without return types