code: def test_bundle_invariance(path=None):
      remote_url = "ssh://datalad-test"
      manager = SSHManager()
      testfile = Path(path) / "dummy"
      for flag in (True, False):
          assert_false(testfile.exists())
          ssh = manager.get_connection(
              remote_url, use_remote_annex_bundle=flag
          )
          ssh("cd .>{}".format(str(testfile)))
          ok_(testfile.exists())
          testfile.unlink()
  
file_path: datalad/datalad/support/tests/test_sshconnector.py
imports: import logging
  import os.path
  from os.path import exists, getmtime, isdir
  from os.path import join
  from datalad.tests.utils_pytest import SkipTest, assert_false, assert_in, assert_is_instance, assert_raises, eq_, get_most_obscure_supported_name, get_ssh_port, ok_, patch_config, skip_if_on_windows, skip_nomultiplex_ssh, skip_ssh, swallow_logs, with_tempfile, with_tree
  from datalad.utils import Path
  from ..sshconnector import MultiplexSSHConnection, MultiplexSSHManager, NoMultiplexSSHConnection, SSHConnection, SSHManager, get_connection_hash, sh_quote
label_desc: Use image node_id 9 for calling a global function with example usage: test_bundle_invariance(path) without return types