code: def sst_get_id_input(content, word_id_dict, max_input_length):
      words = content.split(" ")
      sentence = [word_id_dict["<pad>"]] * max_input_length
      mask = [0] * max_input_length
      unknown = word_id_dict["<unknown>"]
      for i, word in enumerate(words[:max_input_length]):
          sentence[i] = word_id_dict.get(word, unknown)
          mask[i] = 1
      return sentence, mask
  
imports: import logging
  import os
  import pickle
  from collections import Counter
  import numpy
  import torch
  from torch.utils import data
label_desc: Use image node_id 3 for calling a global function with example usage: sst_get_id_input(content, word_id_dict, max_input_length) and returns: sentence,  mask