code: def unit(self, name: Optional[UnitName] = None, symbol=False):
          
          result = self._validate_enum(item=name, enum=UnitName)
  
          if symbol:
              return result[1]
          return result[0]
docs: Get unit name.
  
          :param name: Enum object UnitName.
          :param symbol: Return only symbol
          :return: Unit.