code: def get_csv_reader(csvfile, dialect=csv.excel, encoding="utf-8", **kwds):
      
      try:
          # pylint: disable=pointless-statement
          unicode
          return UnicodeReader(csvfile, dialect=dialect, encoding=encoding, **kwds)
      except NameError:
          return csv.reader(csvfile, dialect=dialect, **kwds)
docs: Returns csv reader.