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