code: def get_resource_name_from_arn(arn):
      """Extract the resource name from an ARN string.
  
      Args:
          arn (str): An ARN.
  
      Returns:
          str: The resource name.
      """
      return arn.split(":", 5)[5].split("/", 1)[1]
  
label_desc: Use image node_id 2 for calling a global function with example usage: get_resource_name_from_arn(arn) and returns: arn