code: def from_int(value: int) -> ulid.ULID:
      
      if value < 0:
          raise ValueError('Expects positive integer')
  
      length = (value.bit_length() + 7) // 8
      if length > 16:
          raise ValueError('Expects integer to be 128 bits; got {} bytes'.format(length))
  
      return ulid.ULID(value.to_bytes(16, byteorder='big'))
docs: Create a new :class:`~ulid.ulid.ULID` instance from the given :class:`~int` value.
  
      :param value: 128 bit integer
      :type value: :class:`~int`
      :return: ULID from integer value
      :rtype: :class:`~ulid.ulid.ULID`
      :raises ValueError: when the value is not a 128 bit integer