class_docstr: From DETR source: https://github.com/facebookresearch/detr
  (detr/models/detr.py)
class_docstr_tok: ["From","DETR","source",":","https",":","\/\/github.com\/facebookresearch\/detr","(","detr\/models\/detr.py",")"]
docstr: permute predictions following indices
docstr_tok: ["permute","predictions","following","indices"]
code: def _get_src_permutation_idx(indices):
      """
      permute predictions following indices
      """
  
      batch_idx = torch.cat(
          [
              torch.full_like(src, i)
              for i, (src, _) in enumerate(indices)
          ]
      )
      src_idx = torch.cat([src for (src, _) in indices])
      return batch_idx, src_idx
  
imports: from typing import List, Optional, Tuple, Union
  import torch
label_desc: Use image node_id 8 for calling the SetCriterion obj's underlying member method code with example usage: obj._get_src_permutation_idx(indices) and returns: batch_idx,  src_idx