code: def get_cond_latents_at_level(cond_latents, level, hparams):
      """Returns a single or list of conditional latents at level 'level'."""
      if cond_latents:
          if hparams.latent_dist_encoder in ["conv_net", "conv3d_net"]:
              return [
                  cond_latent[level] for cond_latent in cond_latents
              ]
          elif hparams.latent_dist_encoder in [
              "pointwise",
              "conv_lstm",
          ]:
              return cond_latents[level]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import numpy
  import scipy
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import common_video
  from tensor2tensor.utils import contrib
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
  import tensorflow_probability
label_desc: Use image node_id 8 for calling a global function with example usage: get_cond_latents_at_level(cond_latents, level, hparams) and returns: unknown, cond_latents