code: def dumps(number):
      
      if not isinstance(number, integer_types):
          raise TypeError('number must be an integer')
  
      if number < 0:
          return '-' + dumps(-number)
  
      value = ''
  
      while number != 0:
          number, index = divmod(number, len(alphabet))
          value = alphabet[index] + value
  
      return value or '0'
docs: Dumps an integer into a base36 string.
  
      :param number: the 10-based integer.
      :returns: the base36 string.