docstr: Tests, whether right-zero-padding work properly.
docstr_tok: ["Tests",",","whether","right-zero-padding","work","properly","."]
code: def test_right_zero_padding(self):
      """Tests, whether right-zero-padding work properly."""
      s1 = SampleBatch(
          {
              "a": np.array([1, 2, 3]),
              "b": {"c": np.array([4, 5, 6])},
              SampleBatch.SEQ_LENS: [1, 2],
          }
      )
      s1.right_zero_pad(max_seq_len=5)
      check(
          s1,
          {
              "a": [1, 0, 0, 0, 0, 2, 3, 0, 0, 0],
              "b": {"c": [4, 0, 0, 0, 0, 5, 6, 0, 0, 0]},
              SampleBatch.SEQ_LENS: [1, 2],
          },
      )
  
imports: import copy
  import functools
  import os
  import unittest
  import numpy
  import torch
  import tree
  import ray
  from ray.rllib.models.repeated_values import RepeatedValues
  from ray.rllib.policy.sample_batch import SampleBatch, attempt_count_timesteps, concat_samples
  from ray.rllib.utils.compression import is_compressed
  from ray.rllib.utils.framework import try_import_torch
  from ray.rllib.utils.test_utils import check
  from ray.rllib.utils.torch_utils import convert_to_torch_tensor
label_desc: Use image node_id 5 for calling the TestSampleBatch obj's underlying member method code with example usage: obj.test_right_zero_padding() without return types