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: Get the item from an entity.
  
  Examples:
      >>> 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_tok: ["Get","the","item","from","an","entity",".","Examples",":",">",">",">","from","towhee.datacollection.entity","import","Entity",">",">",">","e","=","Entity","(","a=1",",","b=2",")",">",">",">","e","<","Entity","dict_keys","(","[","'","a","'",",","'","b","'","]",")",">",">",">",">","e","[","'","a","'","]","1",">",">",">","e","[","'","b","'","]","2"]
code: def __getitem__(self, key):
      """
      Get the item from an entity.
  
      Examples:
          >>> from towhee.datacollection.entity import Entity
          >>> e = Entity(a=1, b=2)
          >>> e
          <Entity dict_keys(['a', 'b'])>
          >>> e['a']
          1
          >>> e['b']
          2
      """
      return getattr(self, key)
  
imports: from typing import Dict, Any
label_desc: Use image node_id 2 for calling the Entity obj's underlying member method code with example usage: obj.__getitem__(key) and returns: getattr