class_docstr: Find repository dates that are more recent than a reference date.
  
  The main purpose of this tool is to find "leaked" real dates in
  repositories that are configured to use fake dates. It checks dates from
  three sources: (1) commit timestamps (author and committer dates), (2)
  timestamps within files of the "git-annex" branch, and (3) the timestamps
  of annotated tags.
docstr: Like 'json_pp', but skip non-error results without flagged objects.
          
docstr_tok: ["Like","'json_pp","'",",","but","skip","non-error","results","without","flagged","objects","."]
code: def custom_result_renderer(res, **kwargs):
      """Like 'json_pp', but skip non-error results without flagged objects."""
      # FIXME: I think the proper way to do this is to use 'result_filter',
      # but I couldn't seem to get eval_results to detect the filter when I
      # used
      #
      #      result_renderer = "json_pp"
      #      result_filter = lambda x: ...
      #
      # Also, I want to keep the "message" key for errors.
      from datalad.ui import ui
  
      to_render = {}
      if res["status"] == "error":
          to_render = dict(res.items())
      elif "report" in res and res["report"]["objects"]:
          to_render = {
              k: v
              for k, v in res.items()
              if k not in ["status", "message", "logger"]
          }
      if to_render:
          ui.message(
              json.dumps(
                  to_render, sort_keys=True, indent=2, default=str
              )
          )
  
file_path: datalad/datalad/local/check_dates.py
imports: import json
  import logging
  import os
  import time
  from datalad.interface.base import Interface
  from datalad.interface.base import build_doc
  from datalad.interface.results import get_status_dict
  from datalad.support.exceptions import CapturedException, InvalidGitRepositoryError, MissingExternalDependency
label_desc: Use image node_id 1 for calling the CheckDates obj's underlying member method code with example usage: obj.custom_result_renderer(res) without return types