code: def test_run_cert_import(monkeypatch):
      monkeypatch.setitem(sys.modules, "not_here", None)
  
      # ImportError
      with pytest.raises(click.BadParameter):
          run_command.make_context("run", ["--cert", "not_here"])
  
      with pytest.raises(click.BadParameter):
          run_command.make_context("run", ["--cert", "flask"])
  
      # SSLContext
      ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
  
      monkeypatch.setitem(sys.modules, "ssl_context", ssl_context)
      ctx = run_command.make_context("run", ["--cert", "ssl_context"])
      assert ctx.params["cert"] is ssl_context
  
      # no --key with SSLContext
      with pytest.raises(click.BadParameter):
          run_command.make_context(
              "run", ["--cert", "ssl_context", "--key", __file__]
          )
  
imports: import importlib.metadata
  import os
  import platform
  import ssl
  import sys
  import types
  from functools import partial
  from pathlib import Path
  import click
  import pytest
  from _pytest.monkeypatch import notset
  from click.testing import CliRunner
  from flask import Blueprint
  from flask import current_app
  from flask import Flask
  from flask.cli import AppGroup
  from flask.cli import find_best_app
  from flask.cli import FlaskGroup
  from flask.cli import get_version
  from flask.cli import load_dotenv
  from flask.cli import locate_app
  from flask.cli import NoAppException
  from flask.cli import prepare_import
  from flask.cli import run_command
  from flask.cli import ScriptInfo
  from flask.cli import with_appcontext
label_desc: Use image node_id 26 for calling a global function with example usage: test_run_cert_import(monkeypatch) without return types