class_docstr: Unit test for check utils.
class_docstr_tok: ["Unit","test","for","check","utils","."]
code: def test_node_iter(self):
      check_node_iter(
          "filter",
          {"filter_by": "x"},
          ("a", "b"),
          ("c", "d"),
          {"a", "b", "x"},
      )
      with self.assertRaises(ValueError):
          check_node_iter(
              "filter",
              {"filter_by": "y"},
              ("a", "b"),
              ("c", "d"),
              {"a", "b", "x"},
          )
      with self.assertRaises(ValueError):
          check_node_iter(
              "filter",
              {"filter_by": "x"},
              ("a", "b"),
              ("c",),
              {"a", "b", "x"},
          )
  
      check_node_iter(
          "window",
          {"size": 3, "step": 2},
          ("a", "b"),
          ("c",),
          {"a", "b"},
      )
      with self.assertRaises(ValueError):
          check_node_iter(
              "window",
              {"size": "size", "step": 2},
              ("a", "b"),
              ("c", "d"),
              {"a", "b"},
          )
      with self.assertRaises(ValueError):
          check_node_iter(
              "window",
              {"size": 0, "step": -1},
              ("a", "b"),
              ("c", "d"),
              {"a", "b"},
          )
  
      check_node_iter(
          "time_window",
          {
              "time_range_sec": 3,
              "time_step_sec": 2,
              "timestamp_col": "a",
          },
          ("a", "b"),
          ("c",),
          {"a", "b"},
      )
      with self.assertRaises(ValueError):
          check_node_iter(
              "time_window",
              {
                  "time_range_sec": 3,
                  "time_step_sec": 2,
                  "timestamp_col": "x",
              },
              ("a", "b"),
              ("c", "d"),
              {"a", "b"},
          )
  
imports: import unittest
  from towhee.runtime.check_utils import check_set, check_node_iter
label_desc: Use image node_id 2 for calling the TestCheckUtils obj's underlying member method code with example usage: obj.test_node_iter() without return types