code: def util_reverse(item):
      new_item = np.zeros(len(item))
      for idx, val in enumerate(item):
          new_item[val] = idx
      return new_item
  
file_path: TextAttack/textattack/constraints/grammaticality/language_models/learning_to_write/language_model_helpers.py
imports: import os
  import numpy
  import torch
  from textattack.shared.utils import LazyLoader
  from .rnn_model import RNNModel
label_desc: Use image node_id 1 for calling a global function with example usage: util_reverse(item) and returns: new_item