Define a Node object as follows:
user
class Node:
    """A Node object containing a data, pointer and other related information."""

    def __init__(self, data):
        """Initializes a Node object with its data.

        Attributes:
            data: A value that this node holds.
            next: A pointer to the next node in the data structure.
            previous: A pointer to the previous node in the data structure.
        """
        self.data = data
        self.next = None
        self.previous = None
assistant