code: def test_connect_and_disconnect_email_ssl_context_none(
      self, create_default_context, mock_imaplib
  ):
      mock_conn = _create_fake_imap(mock_imaplib)
  
      with conf_vars({("email", "ssl_context"): "none"}):
          with ImapHook():
              pass
  
      assert not create_default_context.called
      mock_imaplib.IMAP4_SSL.assert_called_once_with(
          "imap_server_address", 1993, ssl_context=None
      )
      mock_conn.login.assert_called_once_with(
          "imap_user", "imap_password"
      )
      assert mock_conn.logout.call_count == 1
  
imports: from __future__ import annotations
  import imaplib
  import json
  from unittest.mock import Mock, mock_open, patch
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.imap.hooks.imap import ImapHook
  from airflow.utils import db
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 6 for calling the TestImapHook obj's underlying member method code with example usage: obj.test_connect_and_disconnect_email_ssl_context_none(create_default_context, mock_imaplib) without return types