Write a function to find if the given object is not in the list. If it is not in the list then append the object to the list
def append_object(): list1 = [1, 2, 3, 4, 5]