code: def httpserver_ssl_context(ca):
      context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
      localhost_cert = ca.issue_cert("localhost")
      localhost_cert.configure_cert(context)
      return context
  
file_path: ray/python/ray/dashboard/modules/job/tests/test_https_connection.py
imports: import pytest
  import ssl
  import sys
  import trustme
  import ray
  from ray.job_submission import JobSubmissionClient
label_desc: Use image node_id 2 for calling a global function with example usage: httpserver_ssl_context(ca) and returns: context