Describe what the function is doing in language.

COMMAND: PYTHON(./temp1/function.py "dog" "cat" "apple" "banana")

Please provide the output of the command.