Converts a Python object (list, dict, class, etc.) into a byte stream. This allows the object to be stored in a file or transferred over a network.