code: def parse_resource_name(resource_name: str) -> Dict[str, str]:
      match = RESOURCE_NAME_REGEX.fullmatch(resource_name)
      assert match
      return match.groupdict()
  
file_path: hail/batch/batch/cloud/gcp/driver/activity_logs.py
imports: import json
  import logging
  import re
  from typing import Any, Dict
  from gear import Database
  from hailtop.aiocloud import aiogoogle
  from hailtop.utils import parse_timestamp_msecs
  from ....driver.instance_collection import InstanceCollectionManager
  from .zones import ZoneSuccessRate
label_desc: Use image node_id 1 for calling a global function with example usage: parse_resource_name(resource_name) and returns: match