code: def test_check_default_config_pass(monkeypatch, presence, config):
      """Check if the default config test works."""
  
      def mock_default_config(self):
          return config
  
      monkeypatch.setattr(
          orion.core.config.__class__, "to_dict", mock_default_config
      )
  
      result, msg = presence.check_default_config()
  
      assert result == "Success"
      assert msg == ""
      assert presence.db_config == config["storage"]["database"]
  
imports: import pytest
  import orion.core
  import orion.core.io.experiment_builder
  import orion.core.utils.backward
  from orion.core.cli.checks.creation import CreationStage
  from orion.core.cli.checks.operations import OperationsStage
  from orion.core.cli.checks.presence import PresenceStage
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils.exceptions import CheckError
label_desc: Use image node_id 6 for calling a global function with example usage: test_check_default_config_pass(monkeypatch, presence, config) and returns: config