Create a function bookend_list that consumes a list of integers as a parameter and returns the first and last elements as a new list. If the original list is empty, return an empty list instead. Unit test this function sufficiently.
To give the type parameter of a list of integers, use list[int].