code: def createModel(modelName, **kwargs):
    
  
    if modelName not in TemporalMemoryTypes.getTypes():
      raise RuntimeError("Unknown model type: " + modelName)
  
    return getattr(TemporalMemoryTypes, modelName)(**kwargs)
docs: 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.