docstr: Test MDNRNN feature importance and feature sensitivity.
docstr_tok: ["Test","MDNRNN","feature","importance","and","feature","sensitivity","."]
code: def test_mdnrnn(self):
      """Test MDNRNN feature importance and feature sensitivity."""
      config_path = "configs/world_model/cartpole_features.yaml"
      feature_importance, feature_sensitivity = self.run_from_config(
          run_test=train_mdnrnn_and_compute_feature_stats,
          config_path=os.path.join(curr_dir, config_path),
          use_gpu=False,
      )
      TestWorldModel.verify_result(
          feature_importance, ["state1", "state3"]
      )
      TestWorldModel.verify_result(feature_sensitivity, ["state3"])
      logger.info("MDNRNN feature test passes!")
  
imports: import logging
  import os
  import unittest
  from typing import Dict, List, Optional
  import gym
  import numpy
  import reagent.core.types
  import torch
  from reagent.evaluation.world_model_evaluator import FeatureImportanceEvaluator, FeatureSensitivityEvaluator
  from reagent.gym.agents.agent import Agent
  from reagent.gym.envs import EnvWrapper, Gym
  from reagent.gym.envs.pomdp.state_embed_env import StateEmbedEnvironment
  from reagent.gym.policies.random_policies import make_random_policy_for_env
  from reagent.gym.preprocessors import make_replay_buffer_trainer_preprocessor
  from reagent.gym.runners.gymrunner import evaluate_for_n_episodes
  from reagent.gym.utils import build_normalizer, fill_replay_buffer
  from reagent.model_managers.union import ModelManager__Union
  from reagent.models.world_model import MemoryNetwork
  from reagent.replay_memory.circular_replay_buffer import ReplayBuffer
  from reagent.test.base.horizon_test_base import HorizonTestBase
  from reagent.training.world_model.mdnrnn_trainer import MDNRNNTrainer
  from reagent.workflow.types import RewardOptions
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling the TestWorldModel obj's underlying member method code with example usage: obj.test_mdnrnn() without return types