code: def dump_video_of_last_episode(self):
      frame_skipping = max(1, int(5 / self.frame_skip))
      file_name = "episode-{}_score-{}".format(
          self.episode_idx, self.total_reward_in_current_episode
      )
      fps = 10
      if self.visualization_parameters.dump_gifs:
          logger.create_gif(
              self.last_episode_images[::frame_skipping],
              name=file_name,
              fps=fps,
          )
      if self.visualization_parameters.dump_mp4:
          logger.create_mp4(
              self.last_episode_images[::frame_skipping],
              name=file_name,
              fps=fps,
          )
  
imports: import operator
  import time
  from collections import OrderedDict
  from typing import Union, List, Tuple, Dict
  import numpy
  from rl_coach import logger
  from rl_coach.base_parameters import Parameters
  from rl_coach.base_parameters import VisualizationParameters
  from rl_coach.core_types import GoalType, ActionType, EnvResponse, RunPhase
  from rl_coach.environments.environment_interface import EnvironmentInterface
  from rl_coach.logger import screen
  from rl_coach.renderer import Renderer
  from rl_coach.spaces import ActionSpace, ObservationSpace, DiscreteActionSpace, RewardSpace, StateSpace
  from rl_coach.utils import squeeze_list, force_list
label_desc: Use image node_id 21 for calling the Environment obj's underlying member method code with example usage: obj.dump_video_of_last_episode() without return types