code: def _apply():
      # apply patch in a function, to be able to easily patch it out
      # and turn off the patch
      lgr.debug(
          "Apply ephemeral patch to clone.py:_pre_annex_init_processing_"
      )
      mod_clone._pre_annex_init_processing_ = (
          _pre_annex_init_processing_
      )
      lgr.debug(
          "Apply ephemeral patch to clone.py:_post_annex_init_processing_"
      )
      mod_clone._post_annex_init_processing_ = (
          _post_annex_init_processing_
      )
  
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 4 for calling a global function with example usage: _apply() without return types