docs: def make_assess_status_func(*args, **kwargs):
      """Creates an assess_status_func() suitable for handing to pause_unit()
      and resume_unit().
  
      This uses the _determine_os_workload_status(...) function to determine
      what the workload_status should be for the unit.  If the unit is
      not in maintenance or active states, then the message is returned to
      the caller.  This is so an action that doesn't result in either a
      complete pause or complete resume can signal failure with an action_fail()
      """
      def _assess_status_func():
          state, message = _determine_os_workload_status(*args, **kwargs)
          status_set(state, message)
          if state not in ['maintenance', 'active']:
              return message
          return None
  
      return _assess_status_func