code: def test_warning():
      logger.set_stdout("raw")
  
      def f1(a, b):
          return 1
  
      def f2(a, b, c=2):
          kwargs = _match_param(f2, f1)
          return f1(*kwargs)
  
      with Capturing() as out:
          f2(a=1, b=2, c=3)
      assert "Parameter:c" in out[0]  # 传入了需要 warning
  
      assert f2(1, 2) == 1
  
imports: import pytest
  from fastNLP.core.dataloaders.utils import _match_param
  from fastNLP import logger
  from tests.helpers.utils import recover_logger, Capturing
label_desc: Use image node_id 3 for calling a global function with example usage: test_warning() and returns: int, f1