How to control wrappers.Monitor() recording frequency?



I am using the recording code provided at gym documentation page. I have a loop of 100000 steps however, the monitor records videos till 2000 step only. Anyone has an idea regarding how to control the recording frequency of the Monitor() method?

Kind regards,