code: def _add_tracebackhide_to_hidden_frames(tb: types.TracebackType):
      for f, _lineno in traceback.walk_tb(tb):
          if not include_frame(f):
              f.f_locals["__tracebackhide__"] = True
  
imports: from __future__ import annotations
  import functools
  import os
  import sys
  import traceback
  import types
  from typing import Any, Callable, TypeVar, cast
  from jax._src import config
  from jax._src import util
  from jax._src.lib import xla_extension
label_desc: Use image node_id 5 for calling a global function with example usage: _add_tracebackhide_to_hidden_frames(tb) without return types