class_docstr: Accountant to use for privacy accounting.
class_docstr_tok: ["Accountant","to","use","for","privacy","accounting","."]
code: def get_accountant(self) -> dp_accounting.PrivacyAccountant:
      if self == AccountantType.RDP:
          return dp_accounting.rdp.RdpAccountant()
      if self == AccountantType.PLD:
          return dp_accounting.pld.PLDAccountant()
      raise ValueError(f"Unsupported Accountant type {self.value}")
  
file_path: privacy/tensorflow_privacy/privacy/analysis/compute_dp_sgd_privacy_lib.py
imports: import enum
  import functools
  import math
  import textwrap
  from typing import Optional
  from absl import app
  from absl import logging
  import dp_accounting
  from scipy import optimize
label_desc: Use image node_id 1 for calling the AccountantType obj's underlying member method code with example usage: obj.get_accountant() and returns: dp_accounting, dp_accounting