code: def create_secret_data_from_config(
      config: SQLConfig,
      server_ca: str,
      client_cert: Optional[str],
      client_key: Optional[str],
  ) -> Dict[str, str]:
      secret_data = {}
      secret_data["sql-config.json"] = config.to_json()
      secret_data["sql-config.cnf"] = config.to_cnf()
      secret_data["server-ca.pem"] = server_ca
      if client_cert is not None:
          assert client_key is not None
          secret_data["client-cert.pem"] = client_cert
          secret_data["client-key.pem"] = client_key
      else:
          assert client_cert is None and client_key is None
      return secret_data
  
file_path: hail/hail/python/hailtop/auth/sql_config.py
imports: from typing import Dict, NamedTuple, Optional, Any
  import json
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: create_secret_data_from_config(config, server_ca, client_cert, client_key) and returns: secret_data