code: def transpose_and_gather_feat(feat, ind):
      """Transpose and gather feature according to index.
  
      Args:
          feat (Tensor): Target feature map.
          ind (Tensor): Target coord index.
  
      Returns:
          feat (Tensor): Transposed and gathered feature.
      """
      feat = feat.permute(0, 2, 3, 1).contiguous()
      feat = feat.view(feat.size(0), -1, feat.size(3))
      feat = gather_feat(feat, ind)
      return feat
  
file_path: mmdetection/mmdet/models/utils/gaussian_target.py
imports: from math import sqrt
  import torch
  import torch.nn.functional
label_desc: Use image node_id 7 for calling a global function with example usage: transpose_and_gather_feat(feat, ind) and returns: feat