code: def _pre_final_processing_(
      *,
      destds: Dataset,
      cfg: ConfigManager,
      gitclonerec: Dict,
      remote: str,
      reckless: None or str,
  ):
      """Any post-processing after Git and git-annex pieces are fully initialized"""
      if reckless:
          # store the reckless setting in the dataset to make it
          # known to later clones of subdatasets via get()
          destds.config.set(
              "datalad.clone.reckless",
              reckless,
              scope="local",
              reload=True,
          )
      else:
          # We would still want to reload configuration to ensure that any of the
          # above git invocations could have potentially changed the config
          # TODO: might no longer be necessary if 0.14.0 adds reloading upon
          # non-readonly commands invocation
          destds.config.reload()
  
      # trick to have the function behave like a generator, even if it
      # (currently) doesn't actually yield anything.
      if False:
          yield
  
imports: import logging
  from argparse import REMAINDER
  from typing import Dict
  from datalad.cmd import CommandError
  from datalad.config import ConfigManager
  from datalad.distribution.dataset import Dataset, EnsureDataset, datasetmethod, require_dataset, resolve_path
  from datalad.interface.base import Interface, build_doc, eval_results
  from datalad.interface.common_opts import location_description, reckless_opt
  from datalad.interface.results import get_status_dict
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.constraints import EnsureKeyChoice, EnsureNone, EnsureStr
  from datalad.support.exceptions import CapturedException
  from datalad.support.network import RI, PathRI
  from datalad.support.param import Parameter
  from datalad.utils import knows_annex, PurePath, rmtree
  from .clone_utils import _check_autoenable_special_remotes, _format_clone_errors, _generate_candidate_clone_sources, _get_remote, _get_tracking_source, _map_urls, _test_existing_clone_target, _try_clone_candidates, decode_source_spec, postclone_preannex_cfg_ria, postclonecfg_ria
label_desc: Use image node_id 7 for calling a global function with example usage: _pre_final_processing_() without return types