

def detect(stream, delimiter=DEFAULT_DELIMITER):
    'Returns True if given stream is valid CSV.'
    try:
        csv.Sniffer().sniff(stream, delimiters=stream)
        return True
    except (csv.Error, TypeError):
        return False

dataset/ETHPy150Open kennethreitz/tablib/tablib/formats/_csv.py detect/VarMisuse@32/57 `delimiter`->`stream`