def load_env(context):
    """Get the current environment for the running Lambda function.

    Parses the invoked_function_arn from the given context object to get
    the name of the currently running alias (either production or staging)
    and the name of the function.

    Example:
        arn:aws:lambda:aws-region:acct-id:function:stream_alert:production

    Args:
        context: The AWS Lambda context object.

    Returns:
        dict:
            {
                'lambda_region': 'region_name',
                'account_id': 'account_id',
                'lambda_function_name': 'function_name',
                'lambda_alias': 'qualifier'
            }
    """
    arn = context.invoked_function_arn.split(':')
    return {
        'lambda_region': arn[3],
        'account_id': arn[4],
        'lambda_function_name': arn[6],
        'lambda_alias': arn[7]
    }