code: def log_plus(p1: float, p2: float):
      if p1 == global_constants.FP32_NEG_INF:
          return p2
  
      if p2 == global_constants.FP32_NEG_INF:
          return p1
  
      result = math.log1p(math.exp(-math.fabs(p1 - p2))) + maximum(
          p1, p2
      )
      return result
  
file_path: espnet/espnet2/asr/transducer/rnnt_multi_blank/utils/rnnt_helper.py
imports: import math
  from typing import Optional, Tuple
  import torch
  from numba import cuda
  from espnet2.asr.transducer.rnnt_multi_blank.utils import global_constants
label_desc: Use image node_id 8 for calling a global function with example usage: log_plus(p1, p2) and returns: result, p2, p1