def get_delimiter(filename, *args, **kwargs):
    delimiter_map = {'csv': ',', 'tsv': '\t'}
    delimiter = None
    extension = filename.split('.')[-1]
    if extension in delimiter_map:
        delimiter = delimiter_map[extension]
    return delimiter
dataset/ETHPy150Open crowdresearch/crowdsource-platform/crowdsourcing/utils.py/get_delimiter/original