Check Error Type Python Function Example Code For One To Many Mapping