@classmethod
def from_token(cls, token):
    """Creates a CellId from a hex encoded cell id string, called a token.

        :param str token:
            A hex representation of the cell id. If the input is shorter than
            16 characters, zeros are appended on the right.
        """
    return cls(int(token.ljust(16, '0'), 16))
