code: def get(self):
      total = 0
      for c in self.cm.classes:
          try:
              total += self.cm[c][c] / self.cm.sum_row[c]
          except ZeroDivisionError:
              continue
      try:
          score = total / len(self.cm.classes)
  
          return score
  
      except ZeroDivisionError:
          return 0.0
  
imports: from __future__ import annotations
  from river import metrics
label_desc: Use image node_id 1 for calling the BalancedAccuracy obj's underlying member method code with example usage: obj.get() and returns: score, int