code: def _log_add(logx: float, logy: float) -> float:
      r"""Adds two numbers in the log space.
  
      Args:
          logx: First term in log space.
          logy: Second term in log space.
  
      Returns:
          Sum of numbers in log space.
      """
      a, b = min(logx, logy), max(logx, logy)
      if a == -np.inf:  # adding 0
          return b
      # Use exp(a) + exp(b) = (exp(a - b) + 1) * exp(b)
      return math.log1p(math.exp(a - b)) + b
  
file_path: opacus/opacus/accountants/analysis/rdp.py
imports: import math
  import warnings
  from typing import List, Tuple, Union
  import numpy
  from scipy import special
label_desc: Use image node_id 1 for calling a global function with example usage: _log_add(logx, logy) and returns: unknown, b