code: def _report(dset, results):
      ds_repo = dset.repo
      for res in results:
          if "run_info" in res:
              if res["status"] != "impossible":
                  res["diff"] = list(res["diff"])
                  # Add extra information that is useful in the report but not
                  # needed for the rerun.
                  out = ds_repo.format_commit(
                      "%an%x00%aI", res["commit"]
                  )
                  res["author"], res["date"] = out.split("\0")
          yield res
  
imports: import json
  import logging
  import os.path
  import re
  import sys
  from copy import copy
  from functools import partial
  from itertools import dropwhile
  from datalad.consts import PRE_INIT_COMMIT_SHA
  from datalad.core.local.run import _format_cmd_shorty, assume_ready_opt, format_command, run_command
  from datalad.distribution.dataset import EnsureDataset, datasetmethod, require_dataset
  from datalad.interface.base import Interface, build_doc, eval_results
  from datalad.interface.results import get_status_dict
  from datalad.interface.common_opts import jobs_opt
  from datalad.support.constraints import EnsureNone, EnsureStr
  from datalad.support.exceptions import CapturedException
  from datalad.support.json_py import load_stream
  from datalad.support.param import Parameter
label_desc: Use image node_id 6 for calling a global function with example usage: _report(dset, results) without return types