code: def outf_writer_compat(
      outfile, encoding, errors, gzip_compress=False
  ):
      """Get a CSV writer with optional compression."""
      return _outf_writer(outfile, encoding, errors, gzip_compress)
  
file_path: nltk/nltk/twitter/common.py
imports: import csv
  import gzip
  import json
  from nltk.internals import deprecated
label_desc: Use image node_id 7 for calling a global function with example usage: outf_writer_compat(outfile, encoding, errors, gzip_compress) and returns: _outf_writer