code: def query_add_default_expr(query: str) -> str:
      default_expression = "run.archived == False"
      # add the default expression to the query if needed
      if not query:
          return default_expression
      else:
          if "run.archived" not in query:
              return f"{default_expression} and {query}"
          else:
              return query
  
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 6 for calling a global function with example usage: query_add_default_expr(query) and returns: default_expression, default_expression, str, query, query