def METHOD_NAME(item=None, version=None):
    kwargs = {}
    if version:
        kwargs['version'] = version
    if item is None:
        return reverse('api-cover-list', kwargs=kwargs)
    kwargs['pk'] = item
    return reverse('api-cover-detail', kwargs=kwargs)