code: def create_doc_idx(sizes):
      doc_idx = [0]
      for i, s in enumerate(sizes):
          if s == 0:
              doc_idx.append(i + 1)
      return doc_idx
  
imports: import os
  import shutil
  import struct
  from functools import lru_cache
  from itertools import accumulate
  import numpy
  import torch
label_desc: Use image node_id 12 for calling a global function with example usage: create_doc_idx(sizes) and returns: doc_idx