code: function extendsFromDeprecatedWidgetClassVersion(widgetClass) {
      return Object.getPrototypeOf(widgetClass.prototype).constructor.version !== Widget.version;
  }
docs: Following is to maintain backward compatibility with SP-4.0.0, SP-4.1.0 
  Checks whether given widget class extends from a deprecated version of @wso2-dashboards/widget class.
  @param {class} widgetClass class to be checked
  @returns {boolean} true if extend from a deprecated version of the Widget class, otherwise false
  @private