code: def parse_lambda_arn(function_arn):
      """Extract info on the current environment from the lambda function ARN
  
      Parses the invoked_function_arn from the given context object to get
      the name of the currently running alias (either production or development)
      and the name of the function.
  
      Example:
          arn:aws:lambda:aws-region:acct-id:function:streamalert:production
  
      Args:
          function_arn (str): The AWS Lambda function ARN
  
      Returns:
          dict:
              {
                  'region': 'region_name',
                  'account_id': 'account_id',
                  'function_name': 'function_name',
                  'qualifier': 'qualifier'
              }
      """
      split_arn = function_arn.split(":")
      return {
          "region": split_arn[3],
          "account_id": split_arn[4],
          "function_name": split_arn[6],
          "qualifier": split_arn[7]
          if len(split_arn) == 8
          else None,  # optional qualifier
      }
  
imports: from collections import defaultdict, OrderedDict
  import json
  import os
  import re
  from streamalert.shared import CLUSTERED_FUNCTIONS
  from streamalert.shared.exceptions import ConfigError
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 6 for calling a global function with example usage: parse_lambda_arn(function_arn) and returns: dict