class_docstr: Entity is the basic data type in DataCollection.
  
  Users can create an Entity with free schema, which means there is no limit on
  attribute name and type.
  
  Exampels:
      >>> from towhee.datacollection.entity import Entity
      >>> e = Entity(a=1, b=2)
      >>> e
      <Entity dict_keys(['a', 'b'])>
      >>> e.a
      1
      >>> e.b
      2
docstr: 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}"
docstr_tok: ["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","}","''"]
code: 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)
  
imports: from typing import Dict, Any
label_desc: Use image node_id 6 for calling the Entity obj's underlying member method code with example usage: obj.from_dict(cls, tar) and returns: cls