def after_reset(self):
        """
        create a new log to record, note: after_step will be called after calling after_reset()
        """
        if self.engine.record_episode:
            self.episode_info = dict(
                map_data=self.engine.current_map.get_meta_data(),
                frame=[[self.reset_frame]],
                scenario_index=self.engine.global_seed,
                global_config=self.engine.global_config,
                global_seed=self.engine.global_seed,
                manager_metadata={},
                coordinate="MetaDrive",
                time=get_time_str()
            )

            self.collect_objects_states()
            self.collect_manager_states()
            self.collect_manager_metadata()
            self.current_frames = None
            self.reset_frame = None
            self.current_frame_count = 0

        create a new log to record, note: after_step will be called after calling after_reset()
        
metadrive/manager/record_manager.py