def resample(self, rate, **kwargs):
if not isinstance(rate, dict):<EOL><INDENT>rate = dict((c, rate) for c in self)<EOL><DEDENT>for key, resamp in rate.items():<EOL><INDENT>self[key] = self[key].resample(resamp, **kwargs)<EOL><DEDENT>return self<EOL>
Resample items in this dict.

        This operation over-writes items inplace.

        Parameters
        ----------
        rate : `dict`, `float`
            either a `dict` of (channel, `float`) pairs for key-wise
            resampling, or a single float/int to resample all items.

        **kwargs
             other keyword arguments to pass to each item's resampling
             method.