docstr: Create ordered list of random sequences
docstr_tok: ["Create","ordered","list","of","random","sequences"]
code: def _ordered_sequence(self, tensor_type):
      """Create ordered list of random sequences"""
      seqs = [
          tensor_type(random.randint(1, self.max_length))
          for _ in range(self.batch_size)
      ]
      if tensor_type == torch.ByteTensor:
          seqs = [s.random_(0, 256) for s in seqs]
      else:
          seqs = [s.random_(-128, 128) for s in seqs]
      ordered = sorted(seqs, key=len, reverse=True)
      return ordered
  
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 2 for calling the PackedSequenceTest obj's underlying member method code with example usage: obj._ordered_sequence(tensor_type) and returns: ordered