code: def add_to_pipe(nlp, **kwargs):
      coref = NeuralCoref(nlp.vocab, **kwargs)
      nlp.add_pipe(coref, name="neuralcoref")
      return nlp
  
imports: import os
  import tarfile
  import logging
  import warnings
  from neuralcoref.neuralcoref import NeuralCoref
  from neuralcoref.file_utils import NEURALCOREF_MODEL_URL, NEURALCOREF_MODEL_PATH, NEURALCOREF_CACHE, cached_path
label_desc: Use image node_id 1 for calling a global function with example usage: add_to_pipe(nlp) and returns: nlp