human
Solve the following python programming problem given the following code:
def test_8() : 
    channel = ('test_8-' + str (time.time ())) 
    message = 'Hello World' 
    auth_key = ('auth-' + channel) 
    pubnub.set_auth_key (auth_key) 
    def _cb2(resp, ch = None) : 
        assert (resp == { 
            'message' : 'Success', 
            'payload' : { 
                'auths' : { 
                    auth_key : { 
                        'r' : 1, 
                        'm' : 0, 
                        'w' : 1, 
}, 
}, 
                'subscribe_key' : subkey, 
                'level' : 'user', 
                'channel' : channel, 
                'ttl' : 10, 
}, 
}) 
        def _cb3(resp, ch = None) : 
            assert (resp [0] == 1) 
def _err3(resp) : 
            print (resp) 
            assert False 
time.sleep (7) 
        pubnub.publish (channel = channel, message = message, callback = _cb3, error = _err3) 
def _err2(resp) : 
        assert False 
pubnub_pam.grant (channel = _cb2, read = True, write = True, auth_key = auth_key, ttl = 10, callback = _cb2, error = _err2) 

    
    

    Fix the buggy line: pubnub_pam.grant (channel = _cb2, read = True, write = True, auth_key = auth_key, ttl = 10, callback = _cb2, error = _err2)
assistant
#Here is Python code to fix the buggy line: pubnub_pam.

pubnub_pam.grant (channel = channel, read = True, write = True, auth_key = auth_key, ttl = 10, callback = _cb2, error = _err2)