def _get_current_term_value(self):
        """
        If the term type is IN, return the last list in term_value.
        Otherwise, return term_value.

        For IN terms, term_value is a list of lists.
        """
        if self._term_type == MarqoFilterStringParser._TermType.In:
            return self._term_value[-1]
        else:
            return self._term_value

        If the term type is IN, return the last list in term_value.
        Otherwise, return term_value.

        For IN terms, term_value is a list of lists.
        
src/marqo/core/search/search_filter.py