code: def toggle_recording(self):
      if not self.recording:
          dir_name = "_out%04d" % self.recording_dir_num
          while os.path.exists(dir_name):
              self.recording_dir_num += 1
              dir_name = "_out%04d" % self.recording_dir_num
          self.recording_frame_num = 0
          os.mkdir(dir_name)
      else:
          self.hud.notification(
              "Recording finished (folder: _out%04d)"
              % self.recording_dir_num
          )
  
      self.recording = not self.recording
  
imports: from __future__ import print_function
  import glob
  import os
  import sys
  import signal
  import carla
  from carla import ColorConverter
  import argparse
  import logging
  import math
  import random
  import weakref
  from rss_sensor import RssSensor
  from rss_visualization import RssUnstructuredSceneVisualizer, RssBoundingBoxVisualizer, RssStateVisualizer
label_desc: Use image node_id 7 for calling the World obj's underlying member method code with example usage: obj.toggle_recording() without return types