def parse_response_for_async_op(response):
 if (response is None):
  return None
 result = AsynchronousOperationResult()
 if response.headers:
  for (name, value) in response.headers:
   if (name.lower() == 'x-ms-request-id'):
    result.request_id = value
 return result

def parse_response_for_async_op ( response ) : if ( response is None ) : return None result = AsynchronousOperationResult ( ) if response . headers : for ( name , value ) in response . headers : if ( name . lower ( ) == 'x-ms-request-id' ) : result . request_id = value return result
extracts request id from response header .