code: def truncate(data, row, col):
      global MAX_SZ
      if len(data) > MAX_SZ:
          over = len(data) - MAX_SZ
          pct = over / len(data)
          logging.info(
              "Data size is too large for scipy to index all of it. "
              "Throwing out {} entries ({}%% of data).".format(
                  over, pct
              )
          )
          data = data[:MAX_SZ]
          row = row[:MAX_SZ]
          col = col[:MAX_SZ]
      return data, row, col
  
imports: import numpy
  import scipy.sparse
  import math
  from multiprocessing import Pool
  from multiprocessing.util import Finalize
  from functools import partial
  from collections import Counter
  from .None import utils
  from .doc_db import DocDB
  from .None import tokenizers
  import parlai.utils.logging
label_desc: Use image node_id 4 for calling a global function with example usage: truncate(data, row, col) and returns: data,  row,  col