code: def before_log(logger, log_level):
      """Before call strategy that logs to some logger the attempt."""
  
      def log_it(retry_state):
          logger.log(
              log_level,
              "Starting call to '%s', this is the %s time calling it.",
              _utils.get_callback_name(retry_state.fn),
              _utils.to_ordinal(retry_state.attempt_number),
          )
  
      return log_it
  
label_desc: Use image node_id 2 for calling a global function with example usage: before_log(logger, log_level) and returns: log_it