code: def context_to_app(self, dataType):
          
          if self.tagClass != Tag.contextTagClass:
              raise ValueError("context tag required")
  
          # context booleans have value in data
          if (dataType == Tag.booleanAppTag):
              return Tag(Tag.applicationTagClass, Tag.booleanAppTag, struct.unpack('B', self.tagData)[0], '')
          else:
              return ApplicationTag(dataType, self.tagData)
docs: Return an application encoded tag.