def convert(tree,fileName=None):
  """
    Converts input files to be compatible with merge request #1607:
    Change SciKitLearn to use direct subType of the estimator
    @ In, tree, xml.etree.ElementTree.ElementTree object, the contents of a RAVEN input file
    @ In, fileName, the name for the raven input file
    @Out, tree, xml.etree.ElementTree.ElementTree object, the modified RAVEN input file
  """
  simulation = tree.getroot()
  # metrics
  models = simulation.find('Models')
  if models is not None:
    roms = models.findall('ROM')
    for rom in roms:
      subType = rom.attrib['subType']
      if subType == 'SciKitLearn':
        node = rom.find('SKLtype')
        sklType = node.text
        newType = sklType.split('|')[-1] if '|' in sklType else sklType
        rom.attrib['subType'] = newType
        rom.remove(node)
  return tree