code: def _get_test_name() -> str:
      """
      Extracts the module name from the test module.
  
      :return: The name of the test module that called the helper method.
      """
      # The exact layer of the stack will depend on if this is called directly
      # or from another helper, but the test will always contain the identifier.
      test_filename: str = next(
          frame.filename
          for frame in inspect.stack()
          if TEST_FILE_IDENTIFIER in frame.filename
      )
      return Path(test_filename).stem
  
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 1 for calling a global function with example usage: _get_test_name() and returns: Path