    def from_dict(cls, tar: Dict[str, Any]):
        """
        Create an Entity from a dict.

        Args:
            tar (`Dict[str, Any]`):
                The dict to create the Entity.

        Examples:
            >>> from towhee.datacollection.entity import Entity
            >>> d = {'a': 1, 'b': 2}
            >>> str(Entity.from_dict(d))
            "{'a': 1, 'b': 2}"
        """
        return cls(**tar)
Create an Entity from a dict.

Args:
tar (`Dict[str, Any]`):
The dict to create the Entity.

Examples:
>>> from towhee.datacollection.entity import Entity
>>> d = {'a': 1, 'b': 2}
>>> str(Entity.from_dict(d))
"{'a': 1, 'b': 2}"
towhee/datacollection/entity.py