code: def repeat_poisson_rdp(orders, rdp, tau):
      n = len(orders)
      assert len(rdp) == n
      assert min(orders) >= 1
      rdp_out = [None] * n
      for i in range(n):
          if orders[i] == 1:
              continue  # forumula doesn't work with lambda=1
          _, delta, _ = rdp_accountant.get_privacy_spent(
              orders, rdp, target_eps=math.log1p(1 / (orders[i] - 1))
          )
          rdp_out[i] = (
              rdp[i] + tau * delta + math.log(tau) / (orders[i] - 1)
          )
      return rdp_out
  
imports: import math
  import matplotlib.pyplot
  import numpy
  import rdp_accountant
label_desc: Use image node_id 4 for calling a global function with example usage: repeat_poisson_rdp(orders, rdp, tau) and returns: rdp_out