code: def test_nll_compute(self, rhvae, demo_data, nll_params):
      nll = rhvae.get_nll(
          data=demo_data["data"],
          n_samples=nll_params[0],
          batch_size=nll_params[1],
      )
  
      assert isinstance(nll, float)
      assert nll < 0
  
imports: import os
  from copy import deepcopy
  import pytest
  import torch
  from pythae.customexception import BadInheritanceError
  from pythae.models import RHVAE, AutoModel, RHVAEConfig
  from pythae.models.rhvae.rhvae_config import RHVAEConfig
  from pythae.pipelines import GenerationPipeline, TrainingPipeline
  from pythae.samplers import GaussianMixtureSamplerConfig, IAFSamplerConfig, MAFSamplerConfig, NormalSamplerConfig, TwoStageVAESamplerConfig
  from pythae.trainers import BaseTrainer, BaseTrainerConfig
  from tests.data.custom_architectures import Decoder_AE_Conv, Encoder_VAE_Conv, Metric_MLP_Custom, NetBadInheritance
label_desc: Use image node_id 4 for calling the Test_NLL_Compute obj's underlying member method code with example usage: obj.test_nll_compute(rhvae, demo_data, nll_params) without return types