docs: def _GetConnectionArgs(host=None,
                         port=None,
                         user=None,
                         password=None,
                         database=None,
                         client_key_path=None,
                         client_cert_path=None,
                         ca_cert_path=None):
    """Builds connection arguments for MySQLdb.Connect function."""
    connection_args = dict(
        autocommit=False, use_unicode=True, charset=CHARACTER_SET)
  
    if host is not None:
      connection_args["host"] = host
  
    if port is not None:
      connection_args["port"] = port
  
    if user is not None:
      connection_args["user"] = user
  
    if password is not None:
      connection_args["passwd"] = password
  
    if database is not None:
      connection_args["db"] = database
  
    if client_key_path is not None:
      connection_args["ssl"] = {
          "key": client_key_path,
          "cert": client_cert_path,
          "ca": ca_cert_path,
      }
  
    return connection_args