code: void removeScopesForScript(String scriptName) {
      memoized.keySet().removeIf(n -> scriptName.equals(NodeUtil.getSourceName(n)));
    }
docs: Removes all scopes with root nodes from a given script file.
  
  @param scriptName the name of the script file to remove nodes for.