def getSPClass(spatialImp):
if spatialImp == '<STR_LIT>':<EOL><INDENT>return PYSpatialPooler<EOL><DEDENT>elif spatialImp == '<STR_LIT>':<EOL><INDENT>return CPPSpatialPooler<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError("<STR_LIT>"<EOL>"<STR_LIT>" % (spatialImp))<EOL><DEDENT>
Return the class corresponding to the given spatialImp string