How to work with Lasso code?

Hi peaple, can’t understand how to work with bpy.ops.view3d.select_lasso

I thought that it would work through the loop, but I was wrong.

for area in bpy.context.screen.areas:
    if area.type == 'VIEW_3D':

Search in Google, too, has given nothing, nowhere is there information on how to use it.