code: def assure_check(fnc):
      
      @wraps(fnc)
      def _wrapped(self, check, *args, **kwargs):
          if not isinstance(check, CloudMonitorCheck):
              # Must be the ID
              check = self._check_manager.get(check)
          return fnc(self, check, *args, **kwargs)
      return _wrapped
docs: Converts an checkID passed as the check to a CloudMonitorCheck object.