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.
return (
        os.environ.get("TEST_TARGET") != "AWS_CLOUD"
        and os.environ.get("PROVIDER_OVERRIDE_LAMBDA") != "asf"
    )
PROVIDED_TEST_RUNTIMES = [
    LAMBDA_RUNTIME_PROVIDED,
    
    pytest.param(
        LAMBDA_RUNTIME_PROVIDED_AL2,
        marks=pytest.mark.skipif(
            is_old_provider(), reason="curl missing in provided.al2 lambci image"
        ),
    ),
]
T = TypeVar("T")
def read_streams(payload: T) -> T: