def _get_data_id(annotation):
 if isinstance(annotation, HtmlTag):
  return annotation.attributes[TAGID]

def _get_data_id ( annotation ) : if isinstance ( annotation , HtmlTag ) : return annotation . attributes [ TAGID ]
get id of an annotation .