Local_view_get(), working or not?

I’m trying to get the view state of scene objects in Local View mode through this function, but all of them report False whether they are visible or not.

I’m using the next code to evaluate the state (or “bpy.context.space_data” in my script).
Did I miss something?

for area in bpy.context.screen.areas:
    for space in area.spaces:
        if space.type == 'VIEW_3D':
            for obj in bpy.context.scene.objects: