code: def check_ssl_verifiy(host, port):
      context = ssl.create_default_context()
      with socket.create_connection((host, port)) as sock:
          try:
              sock = context.wrap_socket(sock, server_hostname=host)
          except Exception:
              return False
          else:
              sock.close()
              return True
  
file_path: cpython/Lib/test/test_smtpnet.py
imports: import unittest
  from test import support
  from test.support import import_helper
  from test.support import socket_helper
  import smtplib
  import socket
label_desc: Use image node_id 1 for calling a global function with example usage: check_ssl_verifiy(host, port) and returns: True, False