class_docstr: Record MP4 videos using pybullet's logging API.
class_docstr_tok: ["Record","MP4","videos","using","pybullet","'s","logging","API","."]
code: def __init__(self, env, dirname):
      super().__init__(env)
      self._episode_idx = -1
      self._dirname = dirname
  
imports: import argparse
  import functools
  import os
  import gym
  import gym.spaces
  import numpy
  import torch
  from torch import nn
  import pfrl
  from pfrl import experiments, explorers, replay_buffers, utils
  from pfrl.q_functions import DiscreteActionValueHead
label_desc: Use image node_id 1 to create a new RecordMovie object from inherited base classes: gym with example: obj = RecordMovie(env, dirname)