code: def is_modelkit_internal_frame(frame: types.FrameType):
      """
      Guess whether the frame originates from a submodule of `modelkit`
      """
      try:
          mod = inspect.getmodule(frame)
          if mod:
              frame_package = __package__.split(".")[0]
              return frame_package == "modelkit"
      except BaseException:
          pass
      return False
  
imports: import functools
  import inspect
  import os
  import traceback
  import types
  from typing import Any, Callable, Optional, TypeVar, cast
  import pydantic
label_desc: Use image node_id 1 for calling a global function with example usage: is_modelkit_internal_frame(frame) and returns: False, unknown