class_docstr: LSMDC dataset.
class_docstr_tok: ["LSMDC","dataset","."]
code: def shorteningTextTensor(self, text_features, text_sizes):
      m = int(max(text_sizes))
      return text_features[:, 0:m, :]
  
imports: import torch
  from torch.utils.data import Dataset
  import numpy
  import os
  import math
  import random
label_desc: Use image node_id 9 for calling the LSMDC obj's underlying member method code with example usage: obj.shorteningTextTensor(text_features, text_sizes) and returns: text_features