def METHOD_NAME(emitter, system):
    logging.info(f'Baking particles for {emitter.name=}')
    with butil.SelectObjects(emitter):
        override = {
            'scene': bpy.context.scene,
            'active_object': emitter,
            'point_cache': system.point_cache,
        }
        with util.logging.Suppress():
            bpy.context.scene.frame_end += 1
            bpy.ops.ptcache.METHOD_NAME(override, METHOD_NAME=True)
            bpy.context.scene.frame_end -= 1