human
Complete this python program:
def detail_route(methods=None, **kwargs):
assistant
#Here is the Python code you requested.

    """Used to mark a method on a ViewSet that should be routed for detail requests.
    """
    methods = ([u'get'] if (methods is None) else methods)
    def decorator(func):
        func.bind_to_methods = methods
        func.detail = True
        func.kwargs = kwargs
        return func
    return decorator