code: def __init__(self, query: str):
      stripped_query = strip_query(query)
      expr = query_add_default_expr(stripped_query)
      super().__init__(expr=expr)
      self._checker = compile_checker(expr)
      self.run_metadata_cache = None
  
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 1 to create a new RestrictedPythonQuery object from inherited base classes: Query with example: obj = RestrictedPythonQuery(query)