          -------
          dict
              The custom keyword arguments required for recreating the given widget
          """
          retval = dict()
          if widget.__class__.__name__ == "MultiOption":
              retval = dict(value=widget._value,  # pylint:disable=protected-access
                            variable=widget._master_variable)  # pylint:disable=protected-access
          elif widget.__class__.__name__ == "ToggledFrame":
              # Toggled Frames need to have their variable tracked
 
</s> remove     elif serializer.lower() == "yaml" and yaml is not None:
 </s> add     elif serializer.lower() == "yaml" and _HAS_YAML: </s> remove     elif serializer.lower() == "yaml" and yaml is None:
 </s> add     elif serializer.lower() == "yaml": </s> remove     elif extension in (".yaml", ".yml") and yaml is not None:
 </s> add     elif extension in (".yaml", ".yml") and _HAS_YAML: </s> remove     elif extension in (".yaml", ".yml") and yaml is None:
 </s> add     elif extension in (".yaml", ".yml"): </s> remove             layer = layer[0]
 </s> add             klayer: keras.layers.Layer = layer[0]
        retval = {}
          -------
          dict
              The custom keyword arguments required for recreating the given widget
          """
        retval = {}
          if widget.__class__.__name__ == "MultiOption":
              retval = dict(value=widget._value,  # pylint:disable=protected-access
                            variable=widget._master_variable)  # pylint:disable=protected-access
          elif widget.__class__.__name__ == "ToggledFrame":
              # Toggled Frames need to have their variable tracked
keep keep keep keep replace keep keep keep keep keep
 Core updates
   - Change loss loading mechanism
   - Autosize tooltips based on content size
   - Random linting + code modernisation 
lib/gui/control_helper.py