code: def test_nodedup_logs_single_process():
      dedup = LogDeduplicator(5, None, None)
      batch1 = {
          "ip": "node1",
          "pid": 100,
          "lines": ["hello world", "good bye id=123, 0x13"],
      }
  
      # Immediately prints always.
      out1 = dedup.deduplicate(batch1)
      assert out1 == [batch1]
      out1 = dedup.deduplicate(batch1)
      assert out1 == [batch1]
      out1 = dedup.deduplicate(batch1)
      assert out1 == [batch1]
  
imports: import pytest
  from ray._private.ray_logging import LogDeduplicator
label_desc: Use image node_id 1 for calling a global function with example usage: test_nodedup_logs_single_process() without return types