human
Complete the below
def image():

    ''''RESTful CRUD controller'
    '''
assistant
#Here is the Python code you requested.
    def prep(r):
        s3db.gis_location_filter(r)
        if (r.method in ('create', 'create.popup')):
            doc_id = get_vars.get('~.doc_id', None)
            if doc_id:
                s3db.doc_image.doc_id.default = doc_id
        return True
    s3.prep = prep
    output = s3_rest_controller()
    return output