

def set_account_metadata(self, metadata, clear=False, prefix=None):
    "\n        Accepts a dictionary of metadata key/value pairs and updates the\n        account metadata with them.\n\n        If 'clear' is True, any existing metadata is deleted and only the\n        passed metadata is retained. Otherwise, the values passed here update\n        the account's metadata.\n\n        By default, the standard account metadata prefix ('X-Account-Meta-') is\n        prepended to the header name if it isn't present. For non-standard\n        headers, you must include a non-None prefix, such as an empty string.\n        "
    if (prefix is None):
        prefix = ACCOUNT_META_PREFIX
    massaged = _massage_metakeys(metadata, prefix)
    new_meta = {
        
    }
    if clear:
        curr_meta = self.get_account_metadata(prefix=prefix)
        for ckey in curr_meta:
            new_meta[ckey] = ''
        new_meta = _massage_metakeys(new_meta, prefix)
    utils.case_insensitive_update(new_meta, massaged)
    uri = '/'
    (resp, resp_body) = self.api.method_post(uri, headers=new_meta)
    return (200 <= resp.status_code <= 299)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py ContainerManager.set_account_metadata/original