code: def calculate_average_accuracies(
      self, accuracies, metrics, label_levels
  ):
      for m in metrics:
          keyname = self.accuracies_keyname(m, average=True)
          summed_accuracy = 0
          for L in label_levels:
              curr_key = self.accuracies_keyname(
                  m, label_hierarchy_level=L
              )
              summed_accuracy += accuracies[curr_key]
          accuracies[keyname] = summed_accuracy / len(label_levels)
  
imports: from collections import defaultdict
  import torch
  import tqdm
  from ..utils import common_functions
  from ..utils import inference
  from ..utils.accuracy_calculator import AccuracyCalculator
label_desc: Use image node_id 16 for calling the BaseTester obj's underlying member method code with example usage: obj.calculate_average_accuracies(accuracies, metrics, label_levels) without return types