code: def _validate_window_size(axis_sizes):
      """Ensure all sizes in ``axis_sizes`` are odd.
  
      Parameters
      ----------
      axis_sizes : iterable of int
  
      Raises
      ------
      ValueError
          If any given axis size is even.
      """
      for axis_size in axis_sizes:
          if axis_size % 2 == 0:
              msg = (
                  f"Window size for `threshold_sauvola` or "
                  f"`threshold_niblack` must not be even on any dimension. "
                  f"Got {axis_sizes}"
              )
              raise ValueError(msg)
  
imports: import numpy
  from .._shared.utils import _supported_float_type, _to_np_mode
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_window_size(axis_sizes) without return types