def find_last_played_cards_in_trace(self, player_id):
        ''' Find the player_id's last played_cards in trace

        Returns:
            The player_id's last played_cards in trace
        '''
        for i in range(len(self.trace) - 1, -1, -1):
            _id, action = self.trace[i]
            if (_id == player_id and action != 'pass'):
                return action
        return None
 Find the player_id's last played_cards in trace

        Returns:
            The player_id's last played_cards in trace
        
rlcard/games/doudizhu/round.py