def to_raw(self):
        """
        Returns the "raw" version of that object. In the case of an AgentImage, it is a PIL.Image.
        """
        if self._raw is not None:
            return self._raw

        if self._path is not None:
            self._raw = Image.open(self._path)
            return self._raw

        Returns the "raw" version of that object. In the case of an AgentImage, it is a PIL.Image.
        
dpkd/transformers/src/transformers/tools/agent_types.py