class_docstr: Client for working with the Cloud TPU API.
  
  This client is intended to be used for resolving tpu name to ip addresses.
  
  It's recommended to use this library as a contextlib to utilize all
  functionality.
docstr: Check if a runtime OOM event is reported.
code: def _oom_event(self, symptoms):
      """Check if a runtime OOM event is reported."""
      if not symptoms:
          return False
      for symptom in reversed(symptoms):
          if symptom["symptomType"] != "OUT_OF_MEMORY":
              continue
          oom_datetime_str = symptom["createTime"].split(".")[0]
          oom_datetime = datetime.datetime.strptime(
              oom_datetime_str, "%Y-%m-%dT%H:%M:%S"
          )
          time_diff = _utcnow() - oom_datetime
          if time_diff < datetime.timedelta(
              seconds=_OOM_EVENT_COOL_TIME_SEC
          ):
              logging.warning(
                  self._symptom_msg(
                      "a recent runtime OOM has occurred ~{} seconds ago. The model "
                      "script will terminate automatically. To prevent future OOM "
                      "events, please consider reducing the model size. To disable this "
                      "behavior, set flag --runtime_oom_exit=false when starting the "
                      "script.".format(time_diff.seconds)
                  )
              )
              return True
      return False
  
imports: from concurrent import futures
  import datetime
  import json
  import logging
  import os
  import time
  import urllib
  from absl import flags
label_desc: Use image node_id 3 for calling the Client obj's underlying member method code with example usage: obj._oom_event(symptoms) and returns: False, False, True