human
Can you show me a Python function to return a list of items removed from the list.
assistant
Here is a Python function to return a list of items removed from the list

import random

def _remove_all(list_to_remove, list_to_remove_from):
    """Remove all items from list_to_remove_from that are in list_to_remove.

    Parameters
    ----------
    list_to_remove : list
        The list of items to remove.
    list_to_remove_from : list
        The list to remove items from.
    """
    for item in list_to_remove:
        if item in list_to_remove_from:
            list_to_remove_from.remove(item)

# Enter the list
list_to_remove = ["car", "dog"]

# Enter the list
list_to_remove_from = ["car", "dog", "cat"]

# Calling the function
print((_remove_all(list_to_remove, list_to_remove_from)))

#Example Output
# None

#Remember to inspect code for bugs.