code: def _get_plotly_constr(constr):
      """Return the constructor of the underlying plotly graph object and thus omit the
      possibly wrapped [`AbstractFigureAggregator`][figure_resampler.figure_resampler_interface.AbstractFigureAggregator]
      instance.
  
      Parameters
      ----------
      constr : callable
          The constructor of a instantiated plotly-object.
  
      Returns
      -------
      callable
          The constructor of a ``go.FigureWidget`` or a ``go.Figure``.
      """
      if _already_wrapped(constr):
          return constr.__wrapped__  # get the original constructor
      return constr
  
file_path: plotly-resampler/plotly_resampler/registering.py
imports: from functools import wraps
  import plotly
  from plotly_resampler import FigureResampler, FigureWidgetResampler
  from plotly_resampler.figure_resampler.figure_resampler_interface import AbstractFigureAggregator
label_desc: Use image node_id 2 for calling a global function with example usage: _get_plotly_constr(constr) and returns: constr, constr