code: def test_cwd_cached(tmpdir):
      """Check that changing dirs does not change nipype's cwd"""
      oldcwd = config.cwd
      tmpdir.chdir()
      assert config.cwd == oldcwd
  
file_path: nipype/nipype/utils/tests/test_config.py
imports: import os
  import sys
  import pytest
  from nipype import config
  from unittest.mock import MagicMock
label_desc: Use image node_id 14 for calling a global function with example usage: test_cwd_cached(tmpdir) without return types