def get_file(filename):
    '''
    Get file objects with caching.
    '''

    if FILES in filename:
        FILES[filename].seek(0)
        return FILES[filename]

    FILES[filename] = open(filename, 'r')
    return FILES[filename]
dataset/ETHPy150Open Fizzadar/pyinfra/pyinfra/api/util.py/get_file/swapped operands of `in`