code: def chunks(l, n):
      res = []
      for i in range(0, len(l), n):
          assert len(l[i : i + n]) == n
          res += [l[i : i + n]]
      return res
  
file_path: DeepKE/src/deepke/relation_extraction/document/prepro.py
imports: from tqdm import tqdm
  import torch.nn.functional
  import ujson
  import os
  import pickle
  import numpy
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: chunks(l, n) and returns: res