code: def getRepeatedList(
      mapping_argmat: torch.Tensor, score_mat_size: torch.Tensor
  ) -> torch.Tensor:
      """
      Count the numbers in the mapping dictionary and create lists that contain
      repeated indices that will be used for creating a repeated affinity matrix.
      This repeated matrix is then used for fusing multiple affinity values.
      """
      repeat_list = torch.zeros(score_mat_size, dtype=torch.int32).to(
          mapping_argmat.device
      )
      idxs, counts = torch.unique(mapping_argmat, return_counts=True)
      repeat_list[idxs] = counts.int().to(mapping_argmat.device)
      return repeat_list
  
imports: from typing import Dict, List, Tuple
  import torch
  from torch.linalg import eigh, eigvalsh
label_desc: Use image node_id 11 for calling a global function with example usage: getRepeatedList(mapping_argmat, score_mat_size) and returns: repeat_list