class_docstr: Base class for FigureWidget. The FigureWidget class is code-generated as a
  subclass
code: def frames(self, new_frames):
      if new_frames:
          BaseFigureWidget._display_frames_error()
  
imports: import ipywidgets
  from traitlets import List, Unicode, Dict, observe, Integer
  from .basedatatypes import BaseFigure, BasePlotlyType
  from .callbacks import BoxSelector, LassoSelector, InputDeviceState, Points
  from .serializers import custom_serializers
  from .version import __frontend_version__
label_desc: Use image node_id 20 for calling the BaseFigureWidget obj's underlying member method code with example usage: obj.frames(new_frames) without return types