<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def createModel(modelName, **kwargs):
 """ Return a classification model of the appropriate type. The model could be any supported subclass of ClassficationModel based on modelName. @param modelName (str) A supported temporal memory type @param kwargs (dict) Constructor argument for the class that will be instantiated. Keyword parameters specific to each model type should be passed in here. """


  if modelName not in TemporalMemoryTypes.getTypes():
    raise RuntimeError("Unknown model type: " + modelName)

  return getattr(TemporalMemoryTypes, modelName)(**kwargs)