def METHOD_NAME(self, mock_time, mocked_open, mocked_os, mocked_idmapper):
    if isinstance(memplot, Mock):
        return
    from evennia.utils.create import create_script
    mocked_idmapper.cache_size.return_value = (9, 5000)
    mock_time.time = Mock(return_value=6000.0)
    script = create_script(memplot.Memplot)
    script.db.starttime = 0.0
    mocked_os.popen.read.return_value = 5000.0
    script.at_repeat()
    handle = mocked_open()
    handle.write.assert_called_with("100.0, 0.001, 0.001, 9\n")
    script.stop()