While a lambda is still processing (archive unpacking etc), the lambda state should be set to "Pending" (currently "Active") and invocations to that lambda should fail (currently, it can end up in a inconsistent state in this case, like lambdas being executed without layers).

Lambda state should reflect the current internal state, and invocations should fail if not active.
"certifi",
    "idna",
    "pip",
    "dns",
]
PYTHON_TEST_RUNTIMES = (
    [
        LAMBDA_RUNTIME_PYTHON36,
        LAMBDA_RUNTIME_PYTHON37,
        LAMBDA_RUNTIME_PYTHON38,
        LAMBDA_RUNTIME_PYTHON39,
    ]
    if use_docker()
    else [LAMBDA_RUNTIME_PYTHON39]
)
NODE_TEST_RUNTIMES = (
    [LAMBDA_RUNTIME_NODEJS12X, LAMBDA_RUNTIME_NODEJS14X, LAMBDA_RUNTIME_NODEJS16X]
    if use_docker()
    else [LAMBDA_RUNTIME_NODEJS16X]
)
JAVA_TEST_RUNTIMES = (
    [
        LAMBDA_RUNTIME_JAVA8,
        LAMBDA_RUNTIME_JAVA8_AL2,
        LAMBDA_RUNTIME_JAVA11,
    ]
    if use_docker()
    else [LAMBDA_RUNTIME_JAVA11]
)
def is_old_provider():