class_docstr: Record MP4 videos using pybullet's logging API.
class_docstr_tok: ["Record","MP4","videos","using","pybullet","'s","logging","API","."]
code: def reset(self):
      obs = self.env.reset()
      self._episode_idx += 1
      import pybullet
  
      pybullet.startStateLogging(
          pybullet.STATE_LOGGING_VIDEO_MP4,
          os.path.join(
              self._dirname, "{}.mp4".format(self._episode_idx)
          ),
      )
      return obs
  
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 2 for calling the RecordMovie obj's underlying member method code with example usage: obj.reset() and returns: obs