code: def __set_unit(self, value):
          '''
          Sets the unit of the line.
          @param value:str
          '''
          if value in UNITS:
              value = value.upper()
  
          self.__unit = valuf __set_unit(self, value):
          '''
          Sets the unit of the line.
          @param value:str
          '''
          if value in UNITS:
              value = value.upper()
  
          self.__unit = value
docs: Sets the unit of the line.
          @param value:str