def get_instrument_survey_automated_invite(proj, id):
    """Given an instrument id return the automated invite definition if defined"""
    xpath = r"./Study/GlobalVariables/redcap:SurveysSchedulerGroup/redcap:SurveysScheduler[@survey_id='%s']" % id
    return proj.find(xpath, proj.nsmap)