code: def handle_stacktraces(test_results):
      # These files should follow the following architecture:
      # === FAILURES ===
      # <path>:<line>: Error ...
      # <path>:<line>: Error ...
      # <empty line>
  
      total_stacktraces = test_results.split("\n")[1:-1]
      stacktraces = []
      for stacktrace in total_stacktraces:
          try:
              line = stacktrace[: stacktrace.index(" ")].split(":")[-2]
              error_message = stacktrace[stacktrace.index(" ") :]
  
              stacktraces.append(f"(line {line}) {error_message}")
          except Exception:
              stacktraces.append("Cannot retrieve error message.")
  
      return stacktraces
  
imports: import ast
  import collections
  import functools
  import json
  import math
  import operator
  import os
  import re
  import sys
  import time
  from typing import Dict, List, Optional, Union
  import requests
  from slack_sdk import WebClient
label_desc: Use image node_id 2 for calling a global function with example usage: handle_stacktraces(test_results) and returns: stacktraces