def seek_wrapped_response(response):
 if (not hasattr(response, 'seek')):
  wrapper_class = get_seek_wrapper_class(response)
  response = wrapper_class(response)
 assert hasattr(response, 'get_data')
 return response

def seek_wrapped_response ( response ) : if ( not hasattr ( response , 'seek' ) ) : wrapper_class = get_seek_wrapper_class ( response ) response = wrapper_class ( response ) assert hasattr ( response , 'get_data' ) return response
return a copy of response that supports seekable response interface .