def _parse_metadata(response):
if response is None or response.headers is None:<EOL><INDENT>return None<EOL><DEDENT>metadata = _dict()<EOL>for key, value in response.headers:<EOL><INDENT>if key.startswith('<STR_LIT>'):<EOL><INDENT>metadata[key[<NUM_LIT:10>:]] = _to_str(value)<EOL><DEDENT><DEDENT>return metadata<EOL>
Extracts out resource metadata information.