human
Solve the following python programming problem given the following code:
def _wait_synchronous(self) : 
    from impala.hiveserver2 import OperationalError 
    loop_start = time.time () 
    def _sleep_interval(start_time) : 
        elapsed = (time.time () - start_time) 
        if (elapsed < 0.05) : 
            return 0.01 
else : 
            if (elapsed < 1.0) : 
                return 0.05 
else : 
                if (elapsed < 10.0) : 
                    return 0.1 
else : 
                    if (elapsed < 60.0) : 
                        return 0.5 
return 1.0 
cur = self._cursor 
    try : 
        while True : 
            state = cur.status () 
            if self._cursor._op_state_is_error (state) : 
                raise OperationalError ('Operation is in ERROR_STATE') 
if (not cur._op_state_is_executing (state)) : 
                break 
time.sleep (_sleep_interval (cur)) 
except KeyboardInterrupt : 
        print ('Canceling query') 
        self.cancel () 
        raise 

    
    

    Fix the buggy line: time.sleep (_sleep_interval (cur))
assistant
#Here is Python program to fix the buggy line: time.

time.sleep (_sleep_interval (loop_start))