class_docstr: Test class for the DisentangledSequentialVAE model.
class_docstr_tok: ["Test","class","for","the","DisentangledSequentialVAE","model","."]
code: def testSampleDynamicPosteriorFactorized(self):
      features = self.model_factorized.compressor(self.inputs)
      sample, dist = self.model_factorized.sample_dynamic_posterior(
          features, self.samples
      )
      self.assertEqual(
          sample.shape,
          (
              self.samples,
              self.batch_size,
              self.length,
              self.latent_size_dynamic,
          ),
      )
      self.assertDistShape(
          dist,
          (self.latent_size_dynamic,),
          (self.batch_size, self.length),
      )
  
imports: import numpy
  import tensorflow.compat.v1
  from tensorflow_probability.examples import disentangled_vae
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 34 for calling the DisentangledSequentialVAETest obj's underlying member method code with example usage: obj.testSampleDynamicPosteriorFactorized() without return types