code: def __init__(self, project_key=None):
      if project_key is None:
          raise AnalyticsClientError(
              "'project_key' kwarg is expected..."
          )
  
      self.project_key = project_key
      self.redis_client = StrictRedis(**config["redis"])
  
      self.broadcast = config["analytics"].get("broadcast", False)
      self.debug = config["analytics"].get("debug", False)
  
      self.event_whitelist = config["analytics"].get("event_whitelist")
  
file_path: SerpentAI/serpent/analytics_client.py
imports: from redis import StrictRedis
  from datetime import datetime
  from pprint import pprint
  from serpent.config import config
  import json
label_desc: Use image node_id 1 to create a new AnalyticsClient object  with example: obj = AnalyticsClient(project_key)