code: def _pre_annex_init_processing_(
      *, destds: Dataset, reckless: None or str, **kwargs
  ):
      if reckless == "ephemeral":
          # In ephemeral clones we set annex.private=true. This would prevent the
          # location itself being recorded in uuid.log. With a private repo,
          # declaring dead (see below after annex-init) seems somewhat
          # superfluous, but on the other hand:
          # If an older annex that doesn't support private yet touches the
          # repo, the entire purpose of ephemeral would be sabotaged if we did
          # not declare dead in addition. Hence, keep it regardless of annex
          # version.
          destds.config.set("annex.private", "true", scope="local")
  
      yield from orig_pre_annex_init_processing_(
          destds=destds, reckless=reckless, **kwargs
      )
  
file_path: datalad/datalad/core/distributed/clone_ephemeral.py
imports: import logging
  from datalad.distribution.dataset import Dataset
  from datalad.support.exceptions import CapturedException
  from datalad.support.gitrepo import GitRepo
  from datalad.support.network import RI
  from datalad.utils import Path, check_symlink_capability, rmtree
  from .None import clone
label_desc: Use image node_id 1 for calling a global function with example usage: _pre_annex_init_processing_() without return types