human
Write me a the Python program you requested given the following:
I am working on the file "DataStructures/pprint.ipynb".
The first task is:
Arbitrary Classes
Can you write Python program for it?
assistant
#Here is the Python program you requested.

from pprint import pprint

class node:

    def __init__(self, name, contents=[]):
        self.name = name
        self.contents = contents[:]

    def __repr__(self):
        return (
            'node(' + repr(self.name) + ', ' +
            repr(self.contents) + ')'
        )

trees = [
    node('node-1'),
    node('node-2', [node('node-2-1')]),
    node('node-3', [node('node-3-1')]),
]
pprint(trees)