code: def test_special_chars_in_column_name(app_context, physical_dataset):
      qc = QueryContextFactory().create(
          datasource={
              "type": physical_dataset.type,
              "id": physical_dataset.id,
          },
          queries=[
              {
                  "columns": [
                      "col1",
                      "time column with spaces",
                      {
                          "label": "I_AM_A_TRUNC_COLUMN",
                          "sqlExpression": "time column with spaces",
                          "columnType": "BASE_AXIS",
                          "timeGrain": "P1Y",
                      },
                  ],
                  "metrics": ["count"],
                  "orderby": [["col1", True]],
                  "row_limit": 1,
              }
          ],
          result_type=ChartDataResultType.FULL,
          force=True,
      )
  
      query_object = qc.queries[0]
      df = qc.get_df_payload(query_object)["df"]
      if query_object.datasource.database.backend == "sqlite":
          # sqlite returns string as timestamp column
          assert (
              df["time column with spaces"][0] == "2002-01-03 00:00:00"
          )
          assert df["I_AM_A_TRUNC_COLUMN"][0] == "2002-01-01 00:00:00"
      else:
          assert (
              df["time column with spaces"][0].strftime("%Y-%m-%d")
              == "2002-01-03"
          )
          assert (
              df["I_AM_A_TRUNC_COLUMN"][0].strftime("%Y-%m-%d")
              == "2002-01-01"
          )
  
imports: import re
  import time
  from typing import Any
  import numpy
  import pandas
  import pytest
  from pandas import DateOffset
  from superset import db
  from superset.charts.schemas import ChartDataQueryContextSchema
  from superset.common.chart_data import ChartDataResultFormat, ChartDataResultType
  from superset.common.query_context import QueryContext
  from superset.common.query_context_factory import QueryContextFactory
  from superset.common.query_object import QueryObject
  from superset.connectors.sqla.models import SqlMetric
  from superset.daos.datasource import DatasourceDAO
  from superset.extensions import cache_manager
  from superset.superset_typing import AdhocColumn
  from superset.utils.core import AdhocMetricExpressionType, backend, DatasourceType, QueryStatus
  from superset.utils.pandas_postprocessing.utils import FLAT_COLUMN_SEPARATOR
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.conftest import only_postgresql, only_sqlite
  from tests.integration_tests.fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices, load_birth_names_data
  from tests.integration_tests.fixtures.query_context import get_query_context
label_desc: Use image node_id 5 for calling a global function with example usage: test_special_chars_in_column_name(app_context, physical_dataset) without return types