code: def add_mock_settings(
      root_verify_key,
      settings_stash: SettingsStash,
      settings: NodeSettingsV2,
  ) -> NodeSettingsV2:
      # prepare: add mock settings
      result = settings_stash.partition.set(root_verify_key, settings)
      assert result.is_ok()
  
      created_settings = result.ok()
      assert created_settings is not None
  
      return created_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 1 for calling a global function with example usage: add_mock_settings(root_verify_key, settings_stash, settings) and returns: created_settings