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