code: def after_log(
      logger: "logging.Logger",
      log_level: int,
      sec_format: str = "%0.3f",
  ) -> typing.Callable[["RetryCallState"], None]:
      """After call strategy that logs to some logger the finished attempt."""
  
      def log_it(retry_state: "RetryCallState") -> None:
          if retry_state.fn is None:
              # NOTE(sileht): can't really happen, but we must please mypy
              fn_name = "<unknown>"
          else:
              fn_name = _utils.get_callback_name(retry_state.fn)
          logger.log(
              log_level,
              f"Finished call to '{fn_name}' "
              f"after {sec_format % retry_state.seconds_since_start}(s), "
              f"this was the {_utils.to_ordinal(retry_state.attempt_number)} time calling it.",
          )
  
      return log_it
  
label_desc: Use image node_id 2 for calling a global function with example usage: after_log(logger, log_level, sec_format) and returns: log_it