Why demonstration recorder generates multiple demo files instead of only one?

I am working on an imitation learning-based project, when I add demonstration recorder to the agent and start recording the teacher’s actions. After finishing, I find the demo file duplicated i.e demo_0, demo_1, … etc. Why this happens, and every file size is about 2 KB.

it doesn’t by default so you have probably got more than 1 recorder in your scene

Each time you start recording it increments the number, to keep from over writing previous recordings.