code: def update_contour(resolution, **kwargs):
      source.SetResolution(int(resolution))
      ctrl.view_update()
  
imports: import pyvista
  from pyvista.trame.ui import plotter_ui
  from trame.app import get_server
  from trame.ui.vuetify import SinglePageLayout
  from trame.widgets import vuetify
  from vtkmodules.vtkFiltersSources import vtkConeSource
label_desc: Use image node_id 1 for calling a global function with example usage: update_contour(resolution) without return types