code: def set(self, tclass, tnum, tlvt=0, tdata=''):
          
          if not isinstance(tdata, str):
              raise TypeError("tag data must be str")
  
          self.tagClass = tclass
          self.tagNumber = tnum
          self.tagLVT = tlvt
          self.tagData = tdata
docs: set the values of the tag.