code: def test_short_traceback(levels):
      start_traceback = 3
      with pytest.raises(StartTraceback) as exc_info:
          _failing_recursive(
              levels=levels, start_traceback=start_traceback
          )
  
      exc = skip_exceptions(exc_info.value)
      tb = exc.__traceback__
      i = 0
      while tb:
          i += 1
          tb = tb.tb_next
  
      assert i == levels - start_traceback + 1
  
file_path: ray/python/ray/air/tests/test_tracebacks.py
imports: import pytest
  import ray
  from ray.train import ScalingConfig
  from ray.air._internal.util import StartTraceback, skip_exceptions
  from ray.train.data_parallel_trainer import DataParallelTrainer
  from ray.tune import Tuner
label_desc: Use image node_id 3 for calling a global function with example usage: test_short_traceback(levels) without return types