code: def test_append_project_tags(tmpdir):
      config = tmpdir.join(".sagemaker-code-config")
      config.write(
          '{"sagemakerProjectId": "proj-1234", "sagemakerProjectName": "proj-name"}'
      )
      working_dir = tmpdir.mkdir("sub")
  
      tags = _append_project_tags(None, working_dir)
      assert tags == [
          {"Key": "sagemaker:project-id", "Value": "proj-1234"},
          {"Key": "sagemaker:project-name", "Value": "proj-name"},
      ]
  
      tags = _append_project_tags(
          [{"Key": "a", "Value": "b"}], working_dir
      )
      assert tags == [
          {"Key": "a", "Value": "b"},
          {"Key": "sagemaker:project-id", "Value": "proj-1234"},
          {"Key": "sagemaker:project-name", "Value": "proj-name"},
      ]
  
      tags = _append_project_tags(
          [{"Key": "sagemaker:project-id", "Value": "proj-1234"}],
          working_dir,
      )
      assert tags == [
          {"Key": "sagemaker:project-id", "Value": "proj-1234"},
          {"Key": "sagemaker:project-name", "Value": "proj-name"},
      ]
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/test_studio.py
imports: from __future__ import absolute_import
  from sagemaker._studio import _append_project_tags, _find_config, _load_config, _parse_tags
label_desc: Use image node_id 7 for calling a global function with example usage: test_append_project_tags(tmpdir) without return types