code: def _display_suppressed_message(
      nsimilar, ndisplayed, last_ts, final=False
  ):
      # +1 because there was the original result + nsimilar displayed.
      n_suppressed = nsimilar - ndisplayed + 1
      if n_suppressed > 0:
          ts = time()
          # rate-limit update of suppression message, with a large number
          # of fast-paced results updating for each one can result in more
          # CPU load than the actual processing
          # arbitrarily go for a 2Hz update frequency -- it "feels" good
          if last_ts is None or final or (ts - last_ts > 0.5):
              ui.message(
                  "  [{} similar {} been suppressed; disable with datalad.ui.suppress-similar-results=off]".format(
                      n_suppressed,
                      single_or_plural(
                          "message has",
                          "messages have",
                          n_suppressed,
                          False,
                      ),
                  ),
                  cr="\n" if final else "\r",
              )
              return ts
      return last_ts
  
imports: import logging
  import sys
  from time import time
  from os import listdir
  from os.path import join
  from os.path import isdir
  from os.path import relpath
  from os.path import sep
  import json
  from typing import TypeVar
  from datalad.utils import with_pathsep
  from datalad.utils import path_startswith, path_is_subpath, ensure_unicode, getargspec
  from datalad.support.gitrepo import GitRepo
  from datalad.support.exceptions import CapturedException
  from datalad import cfg
  from datalad.dochelpers import single_or_plural
  from datalad.ui import ui
  import datalad.support.ansi_colors
label_desc: Use image node_id 8 for calling a global function with example usage: _display_suppressed_message(nsimilar, ndisplayed, last_ts, final) and returns: last_ts, ts