code: def test_get_extra_params_with_server_cert(
      mock_create_ssl_cert_file: Mock,
  ) -> None:
      from superset.db_engine_specs.trino import TrinoEngineSpec
  
      database = Mock()
  
      database.extra = json.dumps({})
      database.server_cert = "TEST_CERT"
      mock_create_ssl_cert_file.return_value = "/path/to/tls.crt"
      extra = TrinoEngineSpec.get_extra_params(database)
  
      connect_args = extra.get("engine_params", {}).get(
          "connect_args", {}
      )
      assert connect_args.get("http_scheme") == "https"
      assert connect_args.get("verify") == "/path/to/tls.crt"
      mock_create_ssl_cert_file.assert_called_once_with(
          database.server_cert
      )
  
imports: import copy
  import json
  from datetime import datetime
  from typing import Any, Optional
  from unittest.mock import Mock, patch
  import pandas
  import pytest
  from pytest_mock import MockerFixture
  from sqlalchemy import types
  from trino.sqlalchemy import datatype
  import superset.config
  from superset.constants import QUERY_CANCEL_KEY, QUERY_EARLY_CANCEL_KEY, USER_AGENT
  from superset.superset_typing import ResultSetColumnType, SQLAColumnType
  from superset.utils.core import GenericDataType
  from tests.unit_tests.db_engine_specs.utils import assert_column_spec, assert_convert_dttm
  from tests.unit_tests.fixtures.common import dttm
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_extra_params_with_server_cert(mock_create_ssl_cert_file) without return types