code: def test_get_plotly_const(registering_cleanup):
      # Check the basi(c)s
      assert issubclass(FigureResampler, AbstractFigureAggregator)
      assert issubclass(FigureWidgetResampler, AbstractFigureAggregator)
  
      # Is unregistered now
      assert not (isfunction(go.Figure) or isfunction(go.FigureWidget))
      assert not issubclass(go.Figure, AbstractFigureAggregator)
      assert not issubclass(go.FigureWidget, AbstractFigureAggregator)
      assert not issubclass(
          _get_plotly_constr(go.Figure), AbstractFigureAggregator
      )
      assert not issubclass(
          _get_plotly_constr(go.FigureWidget), AbstractFigureAggregator
      )
  
      register_plotly_resampler()
      assert isfunction(go.Figure) and isfunction(go.FigureWidget)
      assert isinstance(go.Figure(), AbstractFigureAggregator)
      assert isinstance(go.FigureWidget(), AbstractFigureAggregator)
      assert issubclass(FigureResampler, AbstractFigureAggregator)
      assert issubclass(FigureWidgetResampler, AbstractFigureAggregator)
      assert not issubclass(
          _get_plotly_constr(go.Figure), AbstractFigureAggregator
      )
      assert not issubclass(
          _get_plotly_constr(go.FigureWidget), AbstractFigureAggregator
      )
  
      unregister_plotly_resampler()
      assert not (isfunction(go.Figure) or isfunction(go.FigureWidget))
      assert not issubclass(go.Figure, AbstractFigureAggregator)
      assert not issubclass(go.FigureWidget, AbstractFigureAggregator)
      assert not issubclass(
          _get_plotly_constr(go.Figure), AbstractFigureAggregator
      )
      assert not issubclass(
          _get_plotly_constr(go.FigureWidget), AbstractFigureAggregator
      )
  
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 1 for calling a global function with example usage: test_get_plotly_const(registering_cleanup) without return types