code: def test_crdedupe_consecutive_offsets():
      fp = CRDedupeFilePolicy()
      console = {
          1: "a",
          2: "a",
          3: "a",
          8: "a",
          12: "a",
          13: "a",
          30: "a",
      }
      intervals = fp.get_consecutive_offsets(console)
      print(intervals)
      assert intervals == [[1, 3], [8, 8], [12, 13], [30, 30]]
  
file_path: wandb/tests/pytest_tests/unit_tests/test_file_stream.py
imports: import itertools
  import os
  import random
  import string
  from dataclasses import dataclass
  from wandb import util
  from wandb.sdk.internal.file_stream import CRDedupeFilePolicy
  from wandb.sdk.lib.file_stream_utils import split_files
label_desc: Use image node_id 2 for calling a global function with example usage: test_crdedupe_consecutive_offsets() without return types