code: def test_merge(tmp_dir, dvc, ancestor, our, their, merged):
      _gen(tmp_dir, ancestor, "ancestor")
      _gen(tmp_dir, our, "our")
      _gen(tmp_dir, their, "their")
  
      assert (
          main(
              [
                  "git-hook",
                  "merge-driver",
                  "--ancestor",
                  "ancestor",
                  "--our",
                  "our",
                  "--their",
                  "their",
              ]
          )
          == 0
      )
  
      _gen(tmp_dir, merged, "merged")
  
      assert (tmp_dir / "our").read_text() == (
          tmp_dir / "merged"
      ).read_text()
  
file_path: dvc/tests/func/test_merge_driver.py
imports: import os
  import pytest
  from dvc.cli import main
  from dvc.utils.fs import remove
label_desc: Use image node_id 2 for calling a global function with example usage: test_merge(tmp_dir, dvc, ancestor, our, their, merged) without return types