def METHOD_NAME(vm: virtual_machine.BaseVirtualMachine,
                    addr: str) -> List[Tuple[float, float]]:
  """Returns the Ping and Pong latency times."""
  stdout, stderr = vm.RemoteCommand(
      f'{_ENV.value} python {_TEST_SCRIPT} {addr}')
  ping_bws = [float(bw) for bw in
              regex_util.ExtractAllMatches(_TIMELINE_PING, stdout + stderr)]
  pong_bws = [float(bw) for bw in
              regex_util.ExtractAllMatches(_TIMELINE_PONG, stdout + stderr)]
  return list(zip(ping_bws, pong_bws))