code: def _remove_py_stack(frames):
      for entry in frames:
          if entry.is_python:
              break
          yield entry
  
imports: from __future__ import annotations
  import bisect
  import dis
  import linecache
  import sys
  import threading
  from collections import defaultdict, deque
  from collections.abc import Callable, Collection
  from time import sleep
  from types import FrameType
  from typing import Any
  import tlz
  import dask.config
  from dask.typing import NoDefault, no_default
  from dask.utils import format_time, parse_timedelta
  from distributed.metrics import time
  from distributed.utils import color_of
label_desc: Use image node_id 14 for calling a global function with example usage: _remove_py_stack(frames) without return types