def short_id(self) -> str:
        """
        The ID of the image truncated to 12 characters, without the ``sha256:`` prefix.
        """
        if self._image.id.startswith("sha256:"):
            return self._image.id.split(":")[1][:12]
        return self._image.id[:12]

        The ID of the image truncated to 12 characters, without the ``sha256:`` prefix.
        
core/testcontainers/core/image.py