code: def test_fake_dates(path=None):
      raise SkipTest(
          "Core GitRepo class does not have format_commit() yet"
      )
  
      gr = GitRepo(path).init()
      gr.cfg.set("datalad.fake-dates", "true")
  
      gr.call_git(["add", "foo"])
      gr.call_git(["commit", "-m", "some", "foo"])
  
      seconds_initial = gr.cfg.obtain("datalad.fake-dates-start")
  
      # First commit is incremented by 1 second.
      eq_(seconds_initial + 1, int(gr.format_commit("%at")))
  
      # The second commit by 2.
      gr.call_git(["add", "bar"])
      gr.call_git(["commit", "-m", "some", "bar"])
      eq_(seconds_initial + 2, int(gr.format_commit("%at")))
  
      # If we checkout another branch, its time is still based on the latest
      # timestamp in any local branch.
      gr.call_git(["checkout", "--orphan", "other"])
      with open(op.join(path, "baz"), "w") as ofh:
          ofh.write("baz content")
      gr.call_git(["add", "baz"])
      gr.call_git(["commit", "-m", "some", "baz"])
      eq_(gr.get_active_branch(), "other")
      eq_(seconds_initial + 3, int(gr.format_commit("%at")))
  
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 9 for calling a global function with example usage: test_fake_dates(path) without return types