def __getitem__(self,key):
        assert self.key_list in key
        
        face_obj = FaceDatabase.FaceObject()
        month,sub,pose,illum = key
        pose = int(pose)
        illum = int(illum)
        
        face_obj.key = key
        face_obj.person_id = key[1]
        
        filename = os.path.join(self.image_path,month,sub,"ILLUM","%02d_%02d"%(pose,illum)+self.image_ext)
        
        face_obj.image = pv.Image(filename)
        
        key = sub
        
        if self.eyes.has_key(key):
            leye,reye = self.eyes[key]
                    
            face_obj.left_eye = leye
            face_obj.right_eye = reye
        
        return face_obj
    
# TODO: Needs unit tests.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/analysis/FaceAnalysis/FaceDatabase.py/PIE_ILLUM_Database_c27.__getitem__/swapped operands of `in`