def sniff_dialect(sample):
    try:
        dialect = csv.Sniffer().sniff(sample, POSSIBLE_DELIMITERS)
    except:
        dialect = None

    return dialect
A functional version of ``csv.Sniffer().sniff``, that extends the
dataset/ETHPy150Open wireservice/csvkit/csvkit/table.py/sniff_dialect