<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def createObjectMachine(machineType, **kwargs):
 """ Return an object machine of the appropriate type. @param machineType (str) A supported ObjectMachine 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 machineType not in ObjectMachineTypes.getTypes():
    raise RuntimeError("Unknown model type: " + machineType)

  return getattr(ObjectMachineTypes, machineType)(**kwargs)