<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def poll_vote(self, id, choices):
 """ Vote in the given poll. `choices` is the index of the choice you wish to register a vote for (i.e. its index in the corresponding polls `options` field. In case of a poll that allows selection of more than one option, a list of indices can be passed. You can only submit choices for any given poll once in case of single-option polls, or only once per option in case of multi-option polls. Returns the updated `poll dict`_ """

        id = self.__unpack_id(id)
        if not isinstance(choices, list):
            choices = [choices]
        params = self.__generate_params(locals(), ['id'])
        
        url = '/api/v1/polls/{0}/votes'.format(id)
        self.__api_request('POST', url, params)