code: def mock_connector(mock_config):
      return MockConnector(mock_config)
  
imports: import pytest
  from pandasai.connectors import BaseConnector
  from pandasai.connectors.base import BaseConnectorConfig
  from pandasai.helpers import Logger
label_desc: Use image node_id 2 for calling a global function with example usage: mock_connector(mock_config) and returns: MockConnector