code: def test_extract_error_message() -> None:
      from superset.db_engine_specs.mssql import MssqlEngineSpec
  
      test_mssql_exception = Exception(
          "(8155, b\"No column name was specified for column 1 of 'inner_qry'."
          "DB-Lib error message 20018, severity 16:\\nGeneral SQL Server error: "
          'Check messages from the SQL Server\\n")'
      )
      error_message = MssqlEngineSpec.extract_error_message(
          test_mssql_exception
      )
      expected_message = (
          "mssql error: All your SQL functions need to "
          "have an alias on MSSQL. For example: SELECT COUNT(*) AS C1 FROM TABLE1"
      )
      assert expected_message == error_message
  
      test_mssql_exception = Exception(
          '(8200, b"A correlated expression is invalid because it is not in a '
          "GROUP BY clause.\\n\")'"
      )
      error_message = MssqlEngineSpec.extract_error_message(
          test_mssql_exception
      )
      expected_message = (
          "mssql error: "
          + MssqlEngineSpec._extract_error_message(test_mssql_exception)
      )
      assert expected_message == error_message
  
imports: import unittest.mock
  from datetime import datetime
  from textwrap import dedent
  from typing import Any, Optional
  import pytest
  from sqlalchemy import column, table
  from sqlalchemy.dialects import mssql
  from sqlalchemy.dialects.mssql import DATE, NTEXT, NVARCHAR, TEXT, VARCHAR
  from sqlalchemy.sql import select
  from sqlalchemy.types import String, TypeEngine, UnicodeText
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  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 5 for calling a global function with example usage: test_extract_error_message() without return types