class_docstr: Clean up after DataLad (possible temporary files etc.)
  
  Removes temporary files and directories left behind by DataLad and
  git-annex in a dataset.
class_docstr_tok: ["Clean","up","after","DataLad","(","possible","temporary","files","etc",".",")","Removes","temporary","files","and","directories","left","behind","by","DataLad","and","git-annex","in","a","dataset","."]
code: def custom_result_summary_renderer(results):
      # Since 'notneeded' results aren't rendered by default, give
      # a nothing-to-clean-message if all results were "notneeded",
      # to not remain entirely silent.
  
      if all(r["status"] == "notneeded" for r in results):
          from datalad.ui import ui
  
          ui.message(
              "nothing to clean, no temporary locations present."
          )
  
file_path: datalad/datalad/local/clean.py
imports: import itertools
  from logging import getLogger
  from datalad.consts import ANNEX_TEMP_DIR, ANNEX_TRANSFER_DIR, ARCHIVES_TEMP_DIR, SEARCH_INDEX_DOTGITDIR
  from datalad.distribution.dataset import EnsureDataset, datasetmethod, require_dataset
  from datalad.interface.base import Interface, build_doc, eval_results
  from datalad.interface.common_opts import recursion_flag, recursion_limit
  from datalad.interface.results import get_status_dict
  from datalad.support.constraints import EnsureChoice, EnsureNone
  from datalad.support.param import Parameter
  from datalad.utils import Path, rmtree
label_desc: Use image node_id 3 for calling the Clean obj's underlying member method code with example usage: obj.custom_result_summary_renderer(results) without return types