code: def make_positions(input, padding_idx: int):
      """Replace non-padding symbols with their position numbers.
  
      Position numbers begin at padding_idx+1. Padding symbols are ignored.
      """
      mask = input.ne(padding_idx)
      return torch.cumsum(mask, dim=1) * mask + padding_idx
  
file_path: pytext/pytext/models/seq_models/utils.py
imports: import logging
  from typing import Dict, List, Optional
  import torch
  import torch.nn.functional
  from torch import nn, Tensor
label_desc: Use image node_id 3 for calling a global function with example usage: make_positions(input, padding_idx) and returns: unknown