code: def find_stack_level():
      """
      Find the first place in the stack that is not inside Holoviews and Param.
      Inspired by: pandas.util._exceptions.find_stack_level
      """
  
      import holoviews as hv
  
      pkg_dir = os.path.dirname(hv.__file__)
      test_dir = os.path.join(pkg_dir, "tests")
      param_dir = os.path.dirname(param.__file__)
  
      frame = inspect.currentframe()
      stacklevel = 0
      while frame:
          fname = inspect.getfile(frame)
          if fname.startswith(
              (pkg_dir, param_dir)
          ) and not fname.startswith(test_dir):
              frame = frame.f_back
              stacklevel += 1
          else:
              break
  
      return stacklevel
  
file_path: holoviews/holoviews/util/warnings.py
imports: import inspect
  import os
  import warnings
  import param
  from packaging.version import Version
label_desc: Use image node_id 2 for calling a global function with example usage: find_stack_level() and returns: stacklevel