code: def check_node_iter(
      iter_type: str,
      iter_param: Dict[str, Any],
      inputs,
      outputs,
      all_inputs: Set[str],
  ):
      """
      Check if the iteration info is valid.
  
      Args:
          iter_type (`str`): The type of the iteration, such as 'map', 'flat_map', 'filter', 'time_window'.
          iter_param (`Dict[str, any]`): The parameter for the iteration.
          inputs (`Tuple`): The inputs schema of the node.
          outputs (`Tuple`): The inputs schema of the node.
          all_inputs (`Set[str]`): The all inputs schema in the DAG util the node.
      """
      if iter_type == FilterConst.name:
          check_length(inputs, outputs)
          check_set(iter_param[FilterConst.param.filter_by], all_inputs)
      elif iter_type == TimeWindowConst.name:
          check_set(
              iter_param[TimeWindowConst.param.timestamp_col],
              all_inputs,
          )
          check_int(
              iter_param,
              [
                  TimeWindowConst.param.time_range_sec,
                  TimeWindowConst.param.time_step_sec,
              ],
          )
      elif iter_type == WindowConst.name:
          check_int(
              iter_param,
              [WindowConst.param.size, WindowConst.param.step],
          )
  
file_path: towhee/towhee/runtime/check_utils.py
imports: from typing import Dict, Any, Set, Tuple, Optional
  import re
  from pydantic import BaseModel, validator
  from towhee.runtime.constants import WindowConst, FilterConst, TimeWindowConst
label_desc: Use image node_id 4 for calling a global function with example usage: check_node_iter(iter_type, iter_param, inputs, outputs, all_inputs) without return types