def retrieve_object_from_file(file_name, save_key, file_location):
shelve_store = None<EOL>file = __os.path.join(file_location, file_name)<EOL>try:<EOL><INDENT>shelve_store = __shelve.open(file)<EOL><DEDENT>except Exception as e:<EOL><INDENT>LOGGER.critical('<STR_LIT>'.format(error=e))<EOL>__sys.exit('<STR_LIT>')<EOL><DEDENT>stored_object = shelve_store.get(save_key)<EOL>shelve_store.close()<EOL>return stored_object<EOL>
Function to retrieve objects from a shelve
Args:
    file_name: Shelve storage file name
    save_key: The name of the key the item is stored in
    file_location: The location of the file, derive from the os module

Returns: Returns the stored object