How to add thin thermal layer resistances on the interface between adjacent regions in FEniCS for two solid conduction problems?

Hello, I have learned that the multi-region heat transfer solver (chtMultiRegionSimpleFoam) in OpenFOAM, which uses the finite volume method, can set thin thermal layer resistances on the interface between two regions. I would like to achieve the same functionality in FEniCS, which uses the finite element method, based on the same principle. How can I do this?

b557805c45142b6e5a6405e636cc2bd