def get_metadata(self, handle):
response = self.open_url(url=handle, suffix='<STR_LIT>')<EOL>try:<EOL><INDENT>return json.load(response)<EOL><DEDENT>finally:<EOL><INDENT>response.close()<EOL><DEDENT>
Returns the associated metadata info for the given handle, the metadata
file must exist (``handle + '.metadata'``). If the given handle has an
``.xz`` extension, it will get removed when calculating the handle
metadata path

Args:
    handle (str): Path to the template to get the metadata from

Returns:
    dict: Metadata for the given handle