def METHOD_NAME(cls, table_name: str) -> DynamoDBKVStore:
    """Load a DynamoDBKVStore from a DynamoDB table name.
    Args:
        table_name (str): DynamoDB table name
    """
    try:
        import boto3
    except ImportError:
        raise ImportError(IMPORT_ERROR_MSG)
    # Get the DynamoDB URL from environment variable
    dynamodb_url = os.getenv("DYNAMODB_URL")
    # Create a session
    session = boto3.Session()
    # If the DynamoDB URL is set, use it as the endpoint URL
    if dynamodb_url:
        ddb = session.resource("dynamodb", endpoint_url=dynamodb_url)
    else:
        # Otherwise, let boto3 use its default configuration
        ddb = session.resource("dynamodb")
    return cls(table=ddb.Table(table_name))