How to get collider from imported model in code

Godot Version

v4.2.2.stable.official [15073afe3]

Question

I’m trying to make a chunk system with static meshes placed in a grid (similar to a home builder system)

My question: Is there a way to get the collider from an imported model purely in code without having to turn it into a scene?