code: def _validate_format_argument(format: str | None) -> None:
      if format is not None and ".%f" in format:
          message = (
              "Detected the pattern `.%f` in the chrono format string."
              " This pattern should not be used to parse values after a decimal point."
              " Use `%.f` instead."
              " See the full specification: https://docs.rs/chrono/latest/chrono/format/strftime"
          )
          warnings.warn(
              message, ChronoFormatWarning, stacklevel=find_stacklevel()
          )
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars import functions
  from polars.datatypes import Date, Datetime, Int32, Time, py_type_to_dtype
  from polars.exceptions import ChronoFormatWarning
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter, rename_use_earliest_to_ambiguous
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_format_argument(format) without return types