<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def set_channel_groups(self, channel_ids, groups):
        '''This function sets the group property of each specified channel
        id with the corresponding group of the passed in groups list.

        Parameters
        ----------
        channel_ids: array_like
            The channel ids (ints) for which the groups will be specified
        groups: array_like
            A list of corresonding groups (ints) for the given channel_ids
        '''
        if len(channel_ids) == len(groups):
            for i in range(len(channel_ids)):
                if isinstance(groups[i], int):
                    self.set_channel_property(channel_ids[i], 'group', groups[i])
                else:
                    raise ValueError(str(groups[i]) + " must be an int")
        else:
            raise ValueError("channel_ids and groups must have same length")