code: def test_dedup_logs_allow_and_skip_regexes():
      dedup = LogDeduplicator(5, "ALLOW_ME", "SKIP_ME")
      batch1 = {
          "ip": "node1",
          "pid": 100,
          "lines": ["hello world", "good bye ALLOW_ME"],
      }
      batch2 = {
          "ip": "node1",
          "pid": 200,
          "lines": [
              "hello world",
              "good bye ALLOW_ME",
              "extra message SKIP_ME",
          ],
      }
      out1 = dedup.deduplicate(batch1)
      assert out1 == [batch1]
      out2 = dedup.deduplicate(batch2)
      assert out2 == [
          {"ip": "node1", "pid": 200, "lines": ["good bye ALLOW_ME"]}
      ]
  
imports: import pytest
  from ray._private.ray_logging import LogDeduplicator
label_desc: Use image node_id 3 for calling a global function with example usage: test_dedup_logs_allow_and_skip_regexes() without return types