def METHOD_NAME(ctx):
    local_log_filename = "{}_{}_{}.log".format(os.environ['conf_resource'], os.environ['edge_user_name'],
                                               os.environ['request_id'])
    local_log_filepath = "/logs/" + os.environ['conf_resource'] + "/" + local_log_filename
    logging.basicConfig(format='%(levelname)-8s [%(asctime)s]  %(message)s',
                        level=logging.INFO,
                        filename=local_log_filepath)
    try:
        subprocess.METHOD_NAME("~/scripts/{}.py".format('dataengine_prepare'), shell=True, check=True)
    except Exception as err:
        traceback.print_exc()
        append_result("Failed preparing Data Engine.", str(err))
        sys.exit(1)
    try:
        subprocess.METHOD_NAME("~/scripts/{}.py".format('dataengine_configure'), shell=True, check=True)
    except Exception as err:
        traceback.print_exc()
        append_result("Failed configuring Data Engine.", str(err))
        sys.exit(1)