code: def testGetAlertsWithAlertType(self):
      _generate_tfdbg_v2_data(
          self.logdir,
          tensor_debug_mode="CONCISE_HEALTH",
          logarithm_times=4,
      )
      run = self._getExactlyOneRun()
      response = self.server.get(
          _ROUTE_PREFIX
          + "/alerts?run=%s&alert_type=InfNanAlert&begin=1&end=-1" % run
      )
      self.assertEqual(200, response.status_code)
      self.assertEqual(
          "application/json", response.headers.get("content-type")
      )
      data = json.loads(response.get_data())
      self.assertEqual(data["begin"], 1)
      self.assertEqual(data["end"], 3)
      self.assertEqual(data["num_alerts"], 3)
      self.assertEqual(data["alerts_breakdown"], {"InfNanAlert": 3})
      self.assertEqual(data["alert_type"], "InfNanAlert")
      alerts = data["alerts"]
      self.assertLen(alerts, 2)
      self.assertEqual(
          alerts[0],
          {
              "alert_type": "InfNanAlert",
              "op_type": "Log",
              "output_slot": 0,
              "size": 4.0,
              "num_neg_inf": 0.0,
              "num_pos_inf": 0.0,
              "num_nan": 1.0,
              "execution_index": 5,
              "graph_execution_trace_index": None,
          },
      )
      self.assertEqual(
          alerts[1],
          {
              "alert_type": "InfNanAlert",
              "op_type": "Log",
              "output_slot": 0,
              "size": 4.0,
              "num_neg_inf": 0.0,
              "num_pos_inf": 0.0,
              "num_nan": 4.0,
              "execution_index": 6,
              "graph_execution_trace_index": None,
          },
      )
  
imports: import collections
  import json
  import os
  import socket
  import threading
  import tensorflow
  from werkzeug import test
  from werkzeug import wrappers
  from tensorboard.backend import application
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.debugger_v2 import debug_data_multiplexer
  from tensorboard.plugins.debugger_v2 import debugger_v2_plugin
label_desc: Use image node_id 15 for calling the DebuggerV2PluginTest obj's underlying member method code with example usage: obj.testGetAlertsWithAlertType() without return types