code: def with_hv_extension(func, extension="bokeh", logo=False):
      """If hv.extension is not loaded, load before calling function"""
  
      @wraps(func)
      def wrapper(*args, **kwargs):
          if extension and not getattr(hv.extension, "_loaded", False):
              from . import hvplot_extension
  
              hvplot_extension(extension, logo=logo)
          return func(*args, **kwargs)
  
      return wrapper
  
imports: import sys
  from collections.abc import Hashable
  from functools import wraps
  from packaging.version import Version
  from types import FunctionType
  import bokeh
  import numpy
  import pandas
  import param
  import holoviews
label_desc: Use image node_id 1 for calling a global function with example usage: with_hv_extension(func, extension, logo) and returns: wrapper, func