code: def merge_aug_scores(aug_scores):
      """Merge augmented bbox scores."""
      if isinstance(aug_scores[0], torch.Tensor):
          return torch.mean(torch.stack(aug_scores), dim=0)
      else:
          return np.mean(aug_scores, axis=0)
  
file_path: mmdetection/mmdet/models/test_time_augs/merge_augs.py
imports: import copy
  import warnings
  from typing import List, Optional, Union
  import numpy
  import torch
  from mmcv.ops import nms
  from mmengine.config import ConfigDict
  from torch import Tensor
  from mmdet.structures.bbox import bbox_mapping_back
label_desc: Use image node_id 4 for calling a global function with example usage: merge_aug_scores(aug_scores) and returns: torch, np