code: def check(self, **params) -> bool:
      # prevent possible messing with globals
      assert set(params.keys()).issubset(self.allowed_params)
  
      # TODO enforce immutable
      try:
          namespace = dict(**params, **restricted_globals)
          return eval(self._checker, restricted_globals, namespace)
      except BaseException as e:
          logger.warning("query failed, %s", e)
          return False
  
imports: import logging
  from abc import abstractmethod
  from functools import lru_cache
  from datetime import datetime, timedelta
  from RestrictedPython import safe_builtins, utility_builtins, limited_builtins, compile_restricted
  from RestrictedPython.Eval import default_guarded_getitem
  from RestrictedPython.Guards import full_write_guard, guarded_iter_unpack_sequence, guarded_unpack_sequence
label_desc: Use image node_id 3 for calling the RestrictedPythonQuery obj's underlying member method code with example usage: obj.check() and returns: eval, False