code: def test_create_connection_with_mocked_credentials_file(self):
      with mock.patch(
          "google.oauth2.credentials.Credentials.from_authorized_user_file"
      ) as mock_credentials:
          mock_credentials.is_valid.return_value = False
          with mock.patch("os.path.isfile") as mock_isfile:
              mock_isfile.return_value = True
              result = self.handler.create_connection()
              self.assertIsNotNone(result)
  
imports: from mindsdb.api.executor.data_types.response_type import RESPONSE_TYPE
  from mindsdb.integrations.handlers.gmail_handler.gmail_handler import GmailHandler
  from mindsdb.integrations.handlers.gmail_handler.gmail_handler import EmailsTable
  from google.oauth2.credentials import Credentials
  from mindsdb_sql import parse_sql
  import unittest
  from unittest.mock import Mock, patch
  from unittest import mock
label_desc: Use image node_id 5 for calling the GmailHandlerTest obj's underlying member method code with example usage: obj.test_create_connection_with_mocked_credentials_file() without return types