code: def test_registering_modes(registering_cleanup):
      register_plotly_resampler(mode="auto")
      # Should be default
      assert isinstance(go.Figure(), FigureResampler)
      assert isinstance(go.FigureWidget(), FigureWidgetResampler)
  
      register_plotly_resampler(mode="figure")
      # Should be all FigureResampler
      assert isinstance(go.Figure(), FigureResampler)
      assert isinstance(go.FigureWidget(), FigureResampler)
  
      register_plotly_resampler(mode="widget")
      # Should be all FigureWidgetResampler
      assert isinstance(go.Figure(), FigureWidgetResampler)
      assert isinstance(go.FigureWidget(), FigureWidgetResampler)
  
file_path: plotly-resampler/tests/test_registering.py
imports: from inspect import isfunction
  import numpy
  import plotly.express
  import plotly.graph_objects
  from plotly_resampler import FigureResampler, FigureWidgetResampler
  from plotly_resampler.figure_resampler.figure_resampler_interface import AbstractFigureAggregator
  from plotly_resampler.registering import _get_plotly_constr, register_plotly_resampler, unregister_plotly_resampler
  from .conftest import registering_cleanup
label_desc: Use image node_id 4 for calling a global function with example usage: test_registering_modes(registering_cleanup) without return types