code: def gather_feats(
      gathering_array,
      array,
      feat_name,
      pairs_ant_index,
      pairs_start_index,
  ):
      if gathering_array is None:
          gathering_array = array
      else:
          if feat_name == FEATURES_NAMES[6]:
              array = [a + pairs_ant_index for a in array]
          elif feat_name == FEATURES_NAMES[3]:
              array = [a + pairs_start_index for a in array]
          gathering_array += array
      return feat_name, gathering_array
  
imports: import re
  import argparse
  import time
  import os
  import io
  import pickle
  import spacy
  import numpy
  from tqdm import tqdm
  from neuralcoref.train.compat import unicode_
  from neuralcoref.train.document import Mention, Document, Speaker, EmbeddingExtractor, MISSING_WORD, extract_mentions_spans
  from neuralcoref.train.utils import parallel_process
label_desc: Use image node_id 7 for calling a global function with example usage: gather_feats(gathering_array, array, feat_name, pairs_ant_index, pairs_start_index) and returns: feat_name,  gathering_array