code: function getScratch (cyOrEle, name) {
        if (cyOrEle.scratch('_cyExpandCollapse') === undefined) {
          cyOrEle.scratch('_cyExpandCollapse', {});
        }
  
        var scratch = cyOrEle.scratch('_cyExpandCollapse');
        var retVal = ( name === undefined ) ? scratch : scratch[name];
        return retVal;
      }
docs: Get the whole scratchpad reserved for this extension (on an element or core) or get a single property of it