code: def deprecation(message, internal="ipywidgets/widgets/"):
      """Generate a deprecation warning targeting the first frame that is not 'internal'
  
      internal is a string or list of strings, which if they appear in filenames in the
      frames, the frames will be considered internal. Changing this can be useful if, for examnple,
      we know that ipywidgets is calling out to traitlets internally.
      """
      if isinstance(internal, str):
          internal = [internal]
  
      # stack level of the first external frame from here
      stacklevel = _external_stacklevel(internal)
  
      # The call to .warn adds one frame, so bump the stacklevel up by one
      warnings.warn(
          message, DeprecationWarning, stacklevel=stacklevel + 1
      )
  
imports: from pathlib import Path
  import sys
  import inspect
  import warnings
label_desc: Use image node_id 3 for calling a global function with example usage: deprecation(message, internal) without return types