def from_dict(cls, d):
        """Instantiate a Variable from a dictionary representation."""
        return cls(
            d['type'], tuple(d['parents']), list(d['properties'].items())
        )
Instantiate a Variable from a dictionary representation.