reformulated set_metadata as sync_from_node