code: def test_normalize_dttm_col() -> None:
      """
      Tests for the ``normalize_dttm_col`` function.
  
      In particular, this covers a regression when Pandas was upgraded from 1.5.3 to
      2.0.3 and the behavior of ``pd.to_datetime`` changed.
      """
      df = pd.DataFrame({"__time": ["2017-07-01T00:00:00.000Z"]})
      assert (
          df.to_markdown()
          == """
  |    | __time                   |
  |---:|:-------------------------|
  |  0 | 2017-07-01T00:00:00.000Z |
      """.strip()
      )
  
      # in 1.5.3 this would return a datetime64[ns] dtype, but in 2.0.3 we had to
      # add ``exact=False`` since there is a leftover after parsing the format
      dttm_cols = (DateColumn("__time", "%Y-%m-%d"),)
  
      # the function modifies the dataframe in place
      normalize_dttm_col(df, dttm_cols)
  
      assert df["__time"].astype(str).tolist() == ["2017-07-01"]
  
imports: import os
  from dataclasses import dataclass
  from typing import Any, Optional
  from unittest.mock import MagicMock, patch
  import pandas
  import pytest
  from sqlalchemy import CheckConstraint, Column, Integer, MetaData, Table
  from superset.exceptions import SupersetException
  from superset.utils.core import cast_to_boolean, check_is_safe_zip, DateColumn, generic_find_constraint_name, generic_find_fk_constraint_name, is_test, normalize_dttm_col, parse_boolean_string, QueryObjectFilterClause, remove_extra_adhoc_filters
label_desc: Use image node_id 10 for calling a global function with example usage: test_normalize_dttm_col() without return types