code: def patch(
      name="hvplot",
      interactive="interactive",
      extension="bokeh",
      logo=False,
  ):
      from . import hvPlot, post_patch
  
      try:
          import xarray as xr
      except:
          raise ImportError(
              "Could not patch plotting API onto xarray. "
              "xarray could not be imported."
          )
  
      # Remove the class docstring as it very developer focused
      XArrayInteractive.__doc__ = ""
  
      xr.register_dataset_accessor(name)(hvPlot)
      xr.register_dataarray_accessor(name)(hvPlot)
      xr.register_dataset_accessor(interactive)(XArrayInteractive)
      xr.register_dataarray_accessor(interactive)(XArrayInteractive)
  
      post_patch(extension, logo)
  
file_path: hvplot/hvplot/xarray.py
imports: import xarray
  from panel.widgets import Widget
  from .interactive import Interactive
label_desc: Use image node_id 1 for calling a global function with example usage: patch(name, interactive, extension, logo) without return types