code: function clearImageIdSpecificToolStateManager(element) {
      const enabledElement = external.cornerstone.getEnabledElement(element);
  
      if (
        !enabledElement.image ||
        toolState.hasOwnProperty(enabledElement.image.imageId) === false
      ) {
        return;
      }
  
      delete toolState[enabledElement.image.imageId];
    }
docs: Clears all tool data from this toolStateManager.