code: def test_settingsstash_update(
      root_verify_key,
      settings_stash: SettingsStash,
      settings: NodeSettingsV2,
      update_settings: NodeSettingsUpdate,
  ) -> None:
      # prepare: add a mock settings
      mock_settings = add_mock_settings(
          root_verify_key, settings_stash, settings
      )
  
      # update mock_settings according to update_settings
      update_kwargs = update_settings.to_dict(
          exclude_empty=True
      ).items()
      for field_name, value in update_kwargs:
          setattr(mock_settings, field_name, value)
  
      # update the settings in the stash
      result = settings_stash.update(
          root_verify_key, settings=mock_settings
      )
  
      assert result.is_ok()
      updated_settings = result.ok()
      assert isinstance(updated_settings, NodeSettingsV2)
      assert mock_settings == updated_settings
  
imports: from syft.service.settings.settings import NodeSettingsUpdate
  from syft.service.settings.settings import NodeSettingsV2
  from syft.service.settings.settings_stash import SettingsStash
label_desc: Use image node_id 3 for calling a global function with example usage: test_settingsstash_update(root_verify_key, settings_stash, settings, update_settings) without return types