def METHOD_NAME(self, text):
    """spm tokenize.
    Args:
        text (str): text string.
    Returns:
        List[str]: sentence pieces str code
    """
    stats = {"num_empty": 0, "num_filtered": 0}
    def valid(line):
        return True
    def encode(l):
        return self.sp.EncodeAsPieces(l)
    def encode_line(line):
        line = line.strip()
        if len(line) > 0:
            line = encode(line)
            if valid(line):
                return line
            else:
                stats["num_filtered"] += 1
        else:
            stats["num_empty"] += 1
        return None
    enc_line = encode_line(text)
    return enc_line