code: def __init__(self, opt):
      api_key = opt.get("perspective_api_key")
      if not PERSPECTIVE_CLIENT_AVAILABLE or not api_key:
          self.client = None
      else:
          self.api_key = api_key
          self.client = self._build_client()
  
file_path: ParlAI/projects/safety_bench/utils/perspective_api.py
imports: import parlai.utils.logging
  from projects.safety_bench.utils.colors import color
  import os
  from typing import Optional
  import time
label_desc: Use image node_id 1 to create a new PerspectiveAPIClientManager object  with example: obj = PerspectiveAPIClientManager(opt)