code: def test_versioned_pklization(tmpdir):
      tmpdir.chdir()
  
      obj = Pickled()
      savepkl("./pickled.pkz", obj, versioning=True)
  
      with pytest.raises(Exception):
          with mock.patch(
              "nipype.utils.tests.test_filemanip.Pickled",
              PickledBreaker,
          ), mock.patch("nipype.__version__", "0.0.0"):
              loadpkl("./pickled.pkz")
  
imports: import os
  import time
  from pathlib import Path
  from unittest import mock, SkipTest
  import pytest
  from ...testing import TempFATFS
  from ...utils.filemanip import save_json, load_json, fname_presuffix, fnames_presuffix, hash_rename, check_forhash, _parse_mount_table, _cifs_table, on_cifs, copyfile, copyfiles, ensure_list, simplify_list, check_depends, split_filename, get_related_files, indirectory, loadpkl, loadcrash, savepkl, path_resolve, write_rst_list, emptydirs
label_desc: Use image node_id 26 for calling a global function with example usage: test_versioned_pklization(tmpdir) without return types