def __setitem__(self, __name: Union[str, Lens], __value: T) -> None:
        """Allow setitem to work on Lenses instead of just strings. Uses `Lens.set`
        if a lens is given."""

        if isinstance(__name, Lens):
            # Does not mutate so need to use dict.update .
            temp = __name.set(self, __value)
            self.update(temp)
            return None

        return super().__setitem__(__name, __value)
Allow setitem to work on Lenses instead of just strings. Uses `Lens.set`
        if a lens is given.
src/core/trulens/core/utils/serial.py