def getModelParamsFromName(gymName):
importName = "<STR_LIT>" % (<EOL>gymName.replace("<STR_LIT:U+0020>", "<STR_LIT:_>").replace("<STR_LIT:->", "<STR_LIT:_>")<EOL>)<EOL>print("<STR_LIT>" % importName)<EOL>try:<EOL><INDENT>importedModelParams = importlib.import_module(importName).MODEL_PARAMS<EOL><DEDENT>except ImportError:<EOL><INDENT>raise Exception("<STR_LIT>"<EOL>% gymName)<EOL><DEDENT>return importedModelParams<EOL>
Given a gym name, assumes a matching model params python module exists within
the model_params directory and attempts to import it.
:param gymName: Gym name, used to guess the model params module name.
:return: OPF Model params dictionary