human
Solve the following python programming problem given the following code:
def method_decorator(decorator) : 
    "
    Converts a view function decorator into a method decorator.
    the special thing about view decorators is that they expect 
    'request' to be their first argument.
    Example:

        class MyView(View):
            allowed_methods = ['GET','POST'],

            @method_decorator(login_required)
            def POST(*arg, **kwargs):
                ...
    " 
    def _dec(func) : 
        def _wrapper(self, * args, **kwargs) : 
            def bound_func(request, * args2, **kwargs2) : 
                return func (self, * args2, ** kwargs2) 
return decorator (bound_func) (self.request, * args, ** kwargs) 
return wraps (func) (_wrapper) 
update_wrapper (_dec, _dec) 
    _dec.__name__ = ('method_dec(%s)' % decorator.__name__) 
    return _dec 

    
    

    Fix the buggy line: update_wrapper (_dec, _dec)
assistant
#Here is Python program to fix the buggy line: update_wrapper (_dec, _dec)
.

update_wrapper (_dec, decorator)