code: def is_fwr(figure: Any) -> bool:
      """Check if the figure is a FigureWidgetResampler.
  
      !!! note
  
          This method will not return True if the figure is a plotly go.FigureWidget.
  
      Parameters
      ----------
      figure : Any
          The figure to check.
  
      Returns
      -------
      bool
          True if the figure is a FigureWidgetResampler.
      """
      from plotly_resampler import FigureWidgetResampler
  
      return isinstance(figure, FigureWidgetResampler)
  
file_path: plotly-resampler/plotly_resampler/figure_resampler/utils.py
imports: import math
  import pandas
  from plotly.basedatatypes import BaseFigure
  from typing import Any
label_desc: Use image node_id 4 for calling a global function with example usage: is_fwr(figure) and returns: isinstance