code: def test_rerun_unrelated_mutator_left_nonrun_right(path=None):
      ds = Dataset(path).create()
      # keep direct repo accessor to speed things up
      ds_repo = ds.repo
      ds.run("echo foo >>foo")
      ds_repo.checkout(
          DEFAULT_BRANCH + "~", options=["--orphan", "side"]
      )
      ds.save(message="squashed")
      ds_repo.checkout(DEFAULT_BRANCH)
      ds_repo.merge(
          "side",
          options=["-m", "Merge side", "--allow-unrelated-histories"],
      )
      # o                 d_n
      # |\
      # | o               c_n
      # o                 b_r
      # o                 a_n
  
      hexsha_before = ds_repo.get_hexsha()
      ds.rerun(since="")
      # o                 b_R
      # o                 d_n
      # |\
      # | o               c_n
      # o                 b_r
      # o                 a_n
      eq_(hexsha_before, ds_repo.get_hexsha(DEFAULT_BRANCH + "^"))
  
file_path: datalad/datalad/local/tests/test_rerun_merges.py
imports: import os.path
  from datalad.distribution.dataset import Dataset
  from datalad.tests.utils_pytest import DEFAULT_BRANCH, assert_false, eq_, neq_, ok_, skip_if_adjusted_branch, slow, with_tempfile
label_desc: Use image node_id 11 for calling a global function with example usage: test_rerun_unrelated_mutator_left_nonrun_right(path) without return types