code: def _stringify(s, encoding, errors):
      if s is None:
          return ""
      if isinstance(s, unicode):
          return s.encode(encoding, errors)
      elif isinstance(s, (int, float)):
          pass  # let csv.QUOTE_NONNUMERIC do its thing.
      elif not isinstance(s, str):
          s = str(s)
      return s
  
imports: import csv
  from textblob.compat import izip
label_desc: Use image node_id 1 for calling a global function with example usage: _stringify(s, encoding, errors) and returns: s, str, s