code: def test_compute_stack_pattern():
      assert (
          LogAggregator(
              "\n".join(
                  [
                      "haha",
                      "Traceback (most recent call last):",
                      '    File "/tmp/something", line 584',
                      "Exception: yaya45",
                      "hehe",
                  ]
              )
          ).compute_crash_pattern()
          == "somethingline Exception: yaya"
      )
  
imports: import sys
  import pytest
  from ray_release.log_aggregator import LogAggregator
label_desc: Use image node_id 1 for calling a global function with example usage: test_compute_stack_pattern() without return types