Python How Do I Differentiate Self Intersection Vs Self Touching In

Python How Do I Differentiate Self Intersection Vs Self Touching In