code: def apply_dttm_defaults(
      table: "SqlaTable", dttm_defaults: dict[str, Any]
  ) -> None:
      """Applies dttm defaults to the table, mutates in place."""
      for dbcol in table.columns:
          # Set is_dttm is column is listed in dttm_columns.
          if dbcol.column_name in dttm_defaults.get("dttm_columns", {}):
              dbcol.is_dttm = True
  
          # Skip non dttm columns.
          if dbcol.column_name not in dttm_defaults.get(
              "dttm_columns", {}
          ):
              continue
  
          # Set table main_dttm_col.
          if dbcol.column_name == dttm_defaults.get("main_dttm_col"):
              table.main_dttm_col = dbcol.column_name
  
          # Apply defaults if empty.
          dttm_column_defaults = dttm_defaults.get(
              "dttm_columns", {}
          ).get(dbcol.column_name, {})
          dbcol.is_dttm = True
          if (
              not dbcol.python_date_format
              and "python_date_format" in dttm_column_defaults
          ):
              dbcol.python_date_format = dttm_column_defaults[
                  "python_date_format"
              ]
          if (
              not dbcol.expression
              and "expression" in dttm_column_defaults
          ):
              dbcol.expression = dttm_column_defaults["expression"]
  
file_path: superset/tests/unit_tests/config_test.py
imports: from functools import partial
  from typing import Any, TYPE_CHECKING
  import pytest
  from pytest_mock import MockerFixture
  from sqlalchemy.orm.session import Session
label_desc: Use image node_id 1 for calling a global function with example usage: apply_dttm_defaults(table, dttm_defaults) without return types