code: def test_labels_expected_on_mutated_query(self):
      query_obj = {
          "granularity": None,
          "from_dttm": None,
          "to_dttm": None,
          "groupby": ["user"],
          "metrics": [
              {
                  "expressionType": "SIMPLE",
                  "column": {"column_name": "user"},
                  "aggregate": "COUNT_DISTINCT",
                  "label": "COUNT_DISTINCT(user)",
              }
          ],
          "is_timeseries": False,
          "filter": [],
          "extras": {},
      }
  
      database = Database(
          database_name="testdb", sqlalchemy_uri="sqlite://"
      )
      table = SqlaTable(table_name="bq_table", database=database)
      db.session.add(database)
      db.session.add(table)
      db.session.commit()
      sqlaq = table.get_sqla_query(**query_obj)
      assert sqlaq.labels_expected == ["user", "COUNT_DISTINCT(user)"]
      sql = table.database.compile_sqla_query(sqlaq.sqla_query)
      assert "COUNT_DISTINCT_user__00db1" in sql
      db.session.delete(table)
      db.session.delete(database)
      db.session.commit()
  
imports: import re
  from datetime import datetime
  from typing import Any, NamedTuple, Optional, Union
  from re import Pattern
  from unittest.mock import patch
  import pytest
  import numpy
  import pandas
  from flask import Flask
  from pytest_mock import MockFixture
  from sqlalchemy.sql import text
  from sqlalchemy.sql.elements import TextClause
  from superset import db
  from superset.connectors.sqla.models import SqlaTable, TableColumn, SqlMetric
  from superset.constants import EMPTY_STRING, NULL_STRING
  from superset.db_engine_specs.bigquery import BigQueryEngineSpec
  from superset.db_engine_specs.druid import DruidEngineSpec
  from superset.exceptions import QueryObjectValidationError, SupersetSecurityException
  from superset.models.core import Database
  from superset.utils.core import AdhocMetricExpressionType, FilterOperator, GenericDataType
  from superset.utils.database import get_example_database
  from tests.integration_tests.fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices, load_birth_names_data
  from tests.integration_tests.test_app import app
  from .base_tests import SupersetTestCase
  from .conftest import only_postgresql
label_desc: Use image node_id 14 for calling the TestDatabaseModel obj's underlying member method code with example usage: obj.test_labels_expected_on_mutated_query() without return types