code: function setElementToolStateManager(element, toolStateManager) {
    const enabledElement = external.cornerstone.getEnabledElement(element);
  
    enabledElement.toolStateManager = toolStateManager;
  }
docs: Sets the tool state manager for an element
  @public
  @method setElementToolStateManager
  
  @param  {HTMLElement} element The element.
  @param {Object} toolStateManager The toolStateManager.
  @returns {undefined}