@classmethod<EOL><INDENT>def extract_tags(cls, obj):<DEDENT>
return dict(<EOL>[("<STR_LIT>".format(attr), obj.get(attr, None)) for attr in<EOL>cls.TAGS]<EOL>)<EOL>
Extract tags from the given object

        :param Any obj: Object to use as context
        :return: Tags to add on span
        :rtype: dict