code: def test_load_config_with_kwargs():
      test_kwargs = {
          "foo": 6,
          "bar": 6,
      }
      initialized_class, leftover = load_config_with_kwargs(
          CustomTestSchema, test_kwargs
      )
  
      assert initialized_class.foo == 6
      assert leftover == {"bar": 6}
  
      # TransformerCombiner has no required/non-default arguments:
      initialized_class, leftover = load_config_with_kwargs(
          lcc.TransformerCombinerConfig, test_kwargs
      )
      assert initialized_class.bias_initializer == "zeros"
      assert leftover == test_kwargs
      initialized_class, leftover = load_config_with_kwargs(
          lcc.TransformerCombinerConfig, {}
      )
      assert leftover == {}
  
file_path: ludwig/tests/ludwig/marshmallow/test_marshmallow_misc.py
imports: import pytest
  from marshmallow_dataclass import dataclass
  import ludwig.combiners.combiners
  from ludwig.schema.trainer import ECDTrainerConfig
  from ludwig.schema.utils import assert_is_a_marshmallow_class, BaseMarshmallowConfig, load_config_with_kwargs
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_config_with_kwargs() without return types