get_collider
returns a Variant, I guess it can be several types of physics nodes, or null. You may be able to cast it according its type: if it's not null, then get the variant as an Object, then test its type through reflection, however I never did that before. You have to find it by yourself (I am busy at the moment sorry^^)