def set_metadata(self, token, data):
req = requests.post(self.meta_url("<STR_LIT>" + token),<EOL>json=data, verify=False)<EOL>if req.status_code != <NUM_LIT:200>:<EOL><INDENT>raise RemoteDataUploadError(<EOL>"<STR_LIT>" + req.json()['<STR_LIT:message>']<EOL>)<EOL><DEDENT>return req.json()<EOL>
Insert new metadata into the OCP metadata database.

Arguments:
    token (str): Token of the datum to set
    data (str): A dictionary to insert as metadata. Include `secret`.

Returns:
    json: Info of the inserted ID (convenience) or an error message.

Throws:
    RemoteDataUploadError: If the token is already populated, or if
        there is an issue with your specified `secret` key.