code: def get_metadata(headers):
    
    return dict((k, v) for k, v in headers.iteritems()
                if any(k.lower().startswith(valid) for valid in _GCS_METADATA))
docs: Get user defined options from HTTP response headers.