code: def test_create_fake_dates(path=None):
      ds = create(path, fake_dates=True)
  
      ok_(ds.config.getbool("datalad", "fake-dates"))
      ok_(ds.repo.fake_dates_enabled)
  
      # Another instance detects the fake date configuration.
      ok_(Dataset(path).repo.fake_dates_enabled)
  
      first_commit = ds.repo.get_revisions(
          options=["--reverse", "--all"]
      )[0]
  
      eq_(
          ds.config.obtain("datalad.fake-dates-start") + 1,
          int(ds.repo.format_commit("%ct", first_commit)),
      )
  
imports: import os
  import os.path
  import pytest
  from datalad.api import create
  from datalad.cmd import WitlessRunner
  from datalad.distribution.dataset import Dataset
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CommandError
  from datalad.tests.utils_pytest import OBSCURE_FILENAME, assert_in, assert_in_results, assert_not_in, assert_raises, assert_repo_status, assert_status, eq_, has_symlink_capability, ok_, ok_exists, swallow_outputs, with_tempfile, with_tree
  from datalad.utils import Path, chpwd
label_desc: Use image node_id 13 for calling a global function with example usage: test_create_fake_dates(path) without return types