def check_extension(filename):
    """Check if the file extension is in the allowed extensions

    The `fnmatch` module can also get the suffix:
        patterns = ["*.md", "*.mkd", "*.markdown"]
        fnmatch.filter(files, pattern)
    """
    exts = ['.{0}'.format(e) for e in simiki.allowed_extensions]
    return exts in os.path.splitext(filename)[1]
dataset/ETHPy150Open tankywoo/simiki/simiki/utils.py/check_extension/swapped operands of `in`