def METHOD_NAME(
    tensorflow_inference_graviton, ec2_connection, ec2_instance_ami, region, cpu_only
):
    _, framework_version = get_framework_and_version_from_tag(tensorflow_inference_graviton)
    threshold = get_threshold_for_image(framework_version, TENSORFLOW_INFERENCE_CPU_THRESHOLD)
    ec2_performance_tensorflow_inference(
        tensorflow_inference_graviton, "cpu", ec2_connection, ec2_instance_ami, region, threshold
    )