code: def get_manager_state(drop_defaults=False, widgets=None):
          
          state = {}
          if widgets is None:
              widgets = Widget.widgets.values()
          for widget in widgets:
              state[widget.model_id] = widget._get_embed_state(drop_defaults=drop_defaults)
          return {'version_major': 2, 'version_minor': 0, 'state': state}
docs: Returns the full state for a widget manager for embedding
  
          :param drop_defaults: when True, it will not include default value
          :param widgets: list with widgets to include in the state (or all widgets when None)
          :return: