<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def search_series(self, **kwargs):
 """Provide the ability to search for a series. .. warning:: authorization token required The following search arguments currently supported: * name * imdbId * zap2itId :param kwargs: keyword arguments to search for series :returns: series record or series records :rtype: dict """

        params = {}
        for arg, val in six.iteritems(kwargs):
            if arg in SERIES_BY:
                params[arg] = val
        resp = self._exec_request(
            'search', path_args=['series'], params=params)
        if cfg.CONF.tvdb.select_first:
            return resp['data'][0]
        return resp['data']