code: def test_openai_handler_probing(mock_openai_handler_class):
      handler = mock_openai_handler_class
  
      # Test create
      known_args = [
          {
              "name": "mode",
              "required": False,
          },
          {
              "name": "temperature",
              "required": False,
          },
      ]
      # Check that the known args are in the creation args
      for arg in known_args:
          assert arg in handler.prediction_args()
  
      # Check that some unknown args are not in the creation args
      assert {
          "name": "unknown_arg",
          "required": False,
      } not in handler.prediction_args()
  
      # inspiring example in  https://github.com/mindsdb/mindsdb/issues/6846
      assert {
          "name": "enigne",
          "required": False,
      } not in handler.prediction_args()
  
file_path: mindsdb/tests/unit/test_arg_probing.py
imports: import pytest
  from mindsdb.integrations.handlers.openai_handler.openai_handler import OpenAIHandler
  from mindsdb.integrations.handlers.statsforecast_handler.statsforecast_handler import StatsForecastHandler
  from mindsdb.integrations.libs.base import ArgProbeMixin
label_desc: Use image node_id 4 for calling a global function with example usage: test_openai_handler_probing(mock_openai_handler_class) without return types