code: def test_set_notes_doesnt_update_local_on_rest_failure(
      sample_model_version: model.ModelVersion,
  ) -> None:
      sample_model_version.notes = "test notes"
  
      responses.patch(
          re.compile(
              f"{_MASTER}/api/v1/models/{sample_model_version.model_name}.*"
          ),
          status=400,
      )
  
      try:
          sample_model_version.set_notes("new notes")
          raise AssertionError("Server's 400 should raise an exception")
      except api.errors.APIException:
          assert sample_model_version.notes == "test notes"
  
file_path: determined/harness/tests/determined/common/experimental/test_model.py
imports: import re
  import pytest
  import responses
  from determined.common import api
  from determined.common.experimental import model
  from tests.fixtures import api_responses
label_desc: Use image node_id 6 for calling a global function with example usage: test_set_notes_doesnt_update_local_on_rest_failure(sample_model_version) without return types