def __reconstruct(params):
if isinstance(params, dict):<EOL><INDENT>if '<STR_LIT>' in params:<EOL><INDENT>cls = params['<STR_LIT>']<EOL>data = __reconstruct(params['<STR_LIT>'])<EOL>return cls(**data)<EOL><DEDENT>else:<EOL><INDENT>data = dict()<EOL>for key, value in six.iteritems(params):<EOL><INDENT>data[key] = __reconstruct(value)<EOL><DEDENT>return data<EOL><DEDENT><DEDENT>elif isinstance(params, (list, tuple)):<EOL><INDENT>return [__reconstruct(v) for v in params]<EOL><DEDENT>else:<EOL><INDENT>return params<EOL><DEDENT>
Reconstruct a transformation or pipeline given a parameter dump.