code: def gcp_worker_logging_url(
      project: str,
      namespace: str,
      start_time: str,
      end_time: Optional[str],
      severity: Optional[List[str]],
  ) -> str:
      query = f"""
  (
  resource.type="gce_instance"
  logName:"worker"
  labels.namespace="{namespace}"
  )
  """
  
      if severity is not None:
          query += severity_query_str(severity)
  
      timestamp_query = timestamp_query_str(start_time, end_time)
  
      return f"https://console.cloud.google.com/logs/query;query={urllib.parse.quote(query)};{urllib.parse.quote(timestamp_query)}?project={project}"
  
file_path: hail/ci/ci/utils.py
imports: import datetime
  import secrets
  import string
  import urllib.parse
  from typing import List, Optional
  from gear import Database
  from gear.cloud_config import get_gcp_config
label_desc: Use image node_id 5 for calling a global function with example usage: gcp_worker_logging_url(project, namespace, start_time, end_time, severity) and returns: str, urllib, str, urllib, str, project