<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def follow(gandi, resource):
 """ Get the operation status Resource is an operation ID """

    oper = gandi.oper.info(int(resource))
    assert(oper['type'].startswith('certificate_'))
    output_cert_oper(gandi, oper)
    return oper