How to set up terrain sets for texture atlas with tiles of different sizes

Godot Version

4.3.dev2

Question

How do set up terrain sets for a texture atlas where some tiles include more than one atlas tile lke these cave tiles from Stardew Valley? I’m trying to solve this issue by changing the texture origins and z indices of specific tiles but I can’t get it to work properly. What am I doing wrong here?