class_docstr: Utils for testing next_frame_glow.
class_docstr_tok: ["Utils","for","testing","next_frame_glow","."]
code: def checkAllConds(self, conds_array, num_total_frames, hparams):
      if hparams.cond_first_frame:
          self.assertEqual(conds_array, [True] * (num_total_frames + 1))
      elif hparams.pretrain_steps > -1:
          self.assertEqual(conds_array, [False] * num_total_frames)
      elif hparams.latent_dist_encoder != "pointwise":
          self.assertEqual(conds_array, [True] * num_total_frames)
  
file_path: tensor2tensor/tensor2tensor/models/video/nfg_test_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tempfile
  import numpy
  from tensor2tensor.data_generators import video_generated
  from tensor2tensor.models.video import next_frame_glow
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 2 for calling the NextFrameGlowTest obj's underlying member method code with example usage: obj.checkAllConds(conds_array, num_total_frames, hparams) without return types