<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_locations(self, channel_ids, locations):
        '''This function sets the location properties of each specified channel
        id with the corresponding locations of the passed in locations list.

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