def METHOD_NAME():
    if not RUNNING_ON_ANDROID:
        print(NON_ANDROID_DEVICE_MSG, '...cancelled orientation.')
        return NON_ANDROID_DEVICE_MSG
    args = request.args
    if 'dir' not in args:
        print('ERROR: asked to orient but no dir specified')
        return 'No direction specified '
    direction = args['dir']
    set_device_orientation(direction)
    return ('', 204)