<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getConstructorArguments(modelName):
 """ Return constructor arguments and associated default values for the given model type. @param modelName (str) A supported temporal memory type @return argNames (list of str) a list of strings corresponding to constructor arguments for the given model type, excluding 'self'. @return defaults (list) a list of default values for each argument """


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

  argspec = inspect.getargspec(
                            getattr(TemporalMemoryTypes, modelName).__init__)
  return (argspec.args[1:], argspec.defaults)