fn update_cast( path: &str, by_id: &IndexMap<String, Map<String, Value>>, dry_run: bool, ) -> Result<()>