code: def ssl_creds(assets_path: Callable[[str], Path]) -> SSLCredPaths:
      ca_path = assets_path("ssl_certs")
  
      # don't hardcode the cert's filename, which has to be the hash of the cert
      [cert_path] = ca_path.glob("*.0")
  
      return SSLCredPaths(
          ca_path=ca_path,
          cert=cert_path,
          key=ca_path / "localhost.key",
      )
  
imports: import contextlib
  import dataclasses
  import http.server
  import os
  import ssl
  import sys
  import threading
  from pathlib import Path
  from typing import Callable, Iterator, Mapping
  from unittest.mock import patch
  import pytest
  import requests
  import wandb.apis
  import wandb.env
label_desc: Use image node_id 1 for calling a global function with example usage: ssl_creds(assets_path) and returns: SSLCredPaths