def METHOD_NAME(cfg: Any) -> "SSLContext":
    """Creates SSLContext instance for usage in asyncio.create_server.
    See ssl.SSLSocket.__init__ for more details.
    """
    if ssl is None:  # pragma: no cover
        raise RuntimeError("SSL is not supported.")
    ctx = ssl.SSLContext(cfg.ssl_version)
    ctx.load_cert_chain(cfg.certfile, cfg.keyfile)
    ctx.verify_mode = cfg.cert_reqs
    if cfg.ca_certs:
        ctx.load_verify_locations(cfg.ca_certs)
    if cfg.ciphers:
        ctx.set_ciphers(cfg.ciphers)
    return ctx