docstr: Create Tensor of random padded sequences
docstr_tok: ["Create","Tensor","of","random","padded","sequences"]
code: def _padded_sequence(self, tensor_type):
      """Create Tensor of random padded sequences"""
      ordered = self._ordered_sequence(tensor_type)
      lengths = [len(i) for i in ordered]
      padded_tensor = rnn_utils.pad_sequence(ordered)
      return padded_tensor, lengths
  
imports: import itertools
  import random
  import torch
  from torch.testing._internal.common_utils import TestCase, run_tests
  import torch.nn.utils.rnn
label_desc: Use image node_id 3 for calling the PackedSequenceTest obj's underlying member method code with example usage: obj._padded_sequence(tensor_type) and returns: padded_tensor,  lengths