Update utils.py

Added check_tr function to implement check_tr node in CPAC_pipeline