code: def user_frame(source_info: SourceInfo) -> Frame | None:
      return next(user_frames(source_info), None)
  
imports: from __future__ import annotations
  from collections.abc import Iterator
  import contextlib
  import dataclasses
  import functools
  import itertools
  import os.path
  import sys
  import sysconfig
  import threading
  import types
  from typing import NamedTuple
  import jax.version
  from jax._src.lib import xla_client
  from jax._src import traceback_util
label_desc: Use image node_id 7 for calling a global function with example usage: user_frame(source_info) and returns: next