code: def change_working_directory(tmp_path, monkeypatch):
      """
      Changes the current working directory to a temporary directory to avoid modifying files in the
      repository.
      """
      monkeypatch.chdir(tmp_path)
  
file_path: mlflow/tests/dev/test_update_ml_package_versions.py
imports: import json
  import re
  from pathlib import Path
  from unittest import mock
  import pytest
  from dev import update_ml_package_versions
label_desc: Use image node_id 1 for calling a global function with example usage: change_working_directory(tmp_path, monkeypatch) without return types