def METHOD_NAME(os_path, new_meta_map):
    path = os_path_to_elektra_path(os_path)
    with _get_kdb_instance() as db:
        ks = kdb.KeySet()
        db.get(ks, path)
        key = ks[path]
        #delete old meta keys
        for meta_key in key.getMeta():
            key.delMeta(meta_key.name)
        #insert new meta keys
        for keyname in new_meta_map.keys():
            key.setMeta(keyname, new_meta_map[keyname])
        db.set(ks, path)