class_docstr: Base helper class for next frame tests.
code: def TestVideoModelWithActionAndRewards(
      self, in_frames, out_frames, hparams, model, expected_last_dim
  ):
      hparams = fill_hparams(hparams, in_frames, out_frames)
      hparams = full_modalities(hparams)
      hparams.reward_prediction = True
  
      features = create_full_features(in_frames, out_frames)
  
      res = self.RunModel(model, hparams, features)
  
      output, targets = res["targets"], features["targets"]
      expected_shape = get_tensor_shape(targets) + (expected_last_dim,)
      self.assertEqual(output.shape, expected_shape)
  
      output, targets = res["target_reward"], features["target_reward"]
      # Assuming Symbol Modality
      expected_shape = get_tensor_shape(targets)[:2] + (
          1,
          1,
          1,
          1,
          3,
      )
      self.assertEqual(output.shape, expected_shape)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.data_generators import video_generated
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 7 for calling the BaseNextFrameTest obj's underlying member method code with example usage: obj.TestVideoModelWithActionAndRewards(in_frames, out_frames, hparams, model, expected_last_dim) without return types