<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _sequence_map(cls, seq, path):
 """Apply a kwargsql expression to every item of a sequence, and returns it. :param seq: the list to transform :param path: kwargsql expression to apply to every elements of the given sequence. """

        if not any(path):
            # There is no further kwargsql expression
            return seq
        result = []
        for item in seq:
            try:
                result.append(cls.__resolve_path(item, path))
            except (KeyError, IndexError):
                pass
        return result