def __init__(self):
        """Initializes a Widget.

        Gives a widget a unique ID.
        """
        # Generate a unique UUID for every instance of a Widget.
        # This helps with adding visualizations to scenes, etc.
        self.id = str(uuid.uuid1())
Initializes a Widget.

        Gives a widget a unique ID.
        
cirq-web/cirq_web/widget.py