human
Complete this python program:
def course():
assistant
#Here is the Python program you requested.

    """Courses Controller
    """
    def prep(r):
        if (r.component_name == 'training'):
            s3.crud_strings['hrm_training'].label_create = T('Add    Trainee')
        return True
    s3.prep = prep
    if ((not auth.s3_has_role(ADMIN)) and (not s3.filter)):
        s3.filter = auth.filter_by_root_org(s3db.hrm_course)
    return s3_rest_controller(rheader=s3db.hrm_rheader)