code: def _validate_env_id(env_id: str) -> str:
      """
      Verifies that a prospective Environment ID value fits requirements.
      An Environment ID for an AWS System test must be a lowercase alphanumeric
      string which starts with a letter.
  
      :param env_id: An Environment ID to validate.
      :return: A validated string cast to lowercase.
      """
      if any(char.isupper() for char in str(env_id)):
          print(LOWERCASE_ENV_ID_MSG)
      if not env_id.isalnum() or not env_id[0].isalpha():
          raise ValueError(INVALID_ENV_ID_MSG)
  
      return env_id.lower()
  
imports: from __future__ import annotations
  import inspect
  import json
  import logging
  import os
  import time
  from pathlib import Path
  from typing import TYPE_CHECKING
  from uuid import uuid4
  import boto3
  from botocore.exceptions import ClientError, NoCredentialsError
  from airflow.decorators import task
  from airflow.providers.amazon.aws.hooks.ssm import SsmHook
  from airflow.utils.state import State
  from airflow.utils.trigger_rule import TriggerRule
label_desc: Use image node_id 2 for calling a global function with example usage: _validate_env_id(env_id) and returns: env_id