code: def test_magic_number():
      # we hard code the magic SHA1 that represents the state of a Git repo
      # prior to the first commit -- used to diff from scratch to a specific
      # commit
      # given the level of dark magic, we better test whether this stays
      # constant across Git versions (it should!)
      out = GitWitlessRunner().run(
          "cd ./ | git hash-object --stdin -t tree",
          protocol=StdOutCapture,
      )
      eq_(out["stdout"].strip(), PRE_INIT_COMMIT_SHA)
  
imports: import os
  import os.path
  from unittest.mock import patch
  import datalad.utils
  from datalad.api import create, diff, save
  from datalad.cmd import GitWitlessRunner, StdOutCapture
  from datalad.consts import PRE_INIT_COMMIT_SHA
  from datalad.distribution.dataset import Dataset
  from datalad.support.exceptions import NoDatasetFound
  from datalad.tests.utils_pytest import DEFAULT_BRANCH, OBSCURE_FILENAME, SkipTest, assert_in, assert_raises, assert_repo_status, assert_result_count, assert_status, chpwd, create_tree, eq_, get_deeply_nested_structure, has_symlink_capability, known_failure_githubci_win, neq_, ok_, with_tempfile
  from datalad.utils import Path
label_desc: Use image node_id 1 for calling a global function with example usage: test_magic_number() without return types