extract_from_return_list function

Function to extract a specific element from a list