code: def test_set_name_doesnt_update_local_on_rest_failure(
      sample_project: project.Project,
  ) -> None:
      sample_project.name = "test_project_name"
  
      responses.patch(
          f"{_MASTER}/api/v1/projects/{sample_project.id}", status=400
      )
  
      try:
          sample_project.set_name("new_project_name")
          raise AssertionError("Server's 400 should raise an exception")
      except api.errors.BadRequestException:
          assert sample_project.name == "test_project_name"
  
file_path: determined/harness/tests/determined/common/experimental/test_project.py
imports: from unittest import mock
  import pytest
  import responses
  from determined.common import api
  from determined.common.api import bindings
  from determined.common.experimental import project
  from tests.fixtures import api_responses
label_desc: Use image node_id 3 for calling a global function with example usage: test_set_name_doesnt_update_local_on_rest_failure(sample_project) without return types