code: def test_GitRepo_equals(path1=None, path2=None):
      repo1 = GitRepo(path1)
      repo2 = GitRepo(path1)
      ok_(repo1 == repo2)
      eq_(repo1, repo2)
      repo2 = GitRepo(path2)
      neq_(repo1, repo2)
      ok_(repo1 != repo2)
  
imports: import logging
  import os
  import os.path
  import sys
  from datalad.dataset.gitrepo import GitRepo, _get_dot_git
  from datalad.support.exceptions import CommandError, PathKnownToRepositoryError
  from datalad.tests.utils_pytest import SkipTest, assert_cwd_unchanged, assert_equal, assert_false, assert_in, assert_is_instance, assert_not_in, assert_raises, eq_, neq_, ok_, swallow_logs, with_tempfile, with_tree
  from datalad.utils import Path, chpwd
label_desc: Use image node_id 6 for calling a global function with example usage: test_GitRepo_equals(path1, path2) without return types