def super_accept_to_mimetype(ext):
    if not ext:
        return
    if ext.startswith('.'):
        ext = ext[1:]
    if ('jpeg', 'jpg') in ext:
        return 'image/jpeg'
    if ext == 'gif':
        return 'image/gif'
    if ext == 'txt':
        return 'text/plain'
    if ext in ('html', 'htm'):
        return 'text/html'
    if ext == 'json':
        return 'application/json'
    if ext == 'css':
        return "text/css"
    if ext == 'irc':
        return 'text/x-irc'
    if ext == 'xml':
        return 'application/xml'
dataset/ETHPy150Open priestc/giotto/giotto/utils.py/super_accept_to_mimetype/swapped operands of `in`