@staticmethod<EOL><INDENT>def _flatten_models(tasklist):<DEDENT>
ans = gvar.BufferDict()<EOL>for task, mlist in tasklist:<EOL><INDENT>if task != '<STR_LIT>':<EOL><INDENT>continue<EOL><DEDENT>for m in mlist:<EOL><INDENT>id_m = id(m)<EOL>if id_m not in ans:<EOL><INDENT>ans[id_m] = m<EOL><DEDENT><DEDENT><DEDENT>return ans.buf.tolist()<EOL>
Create 1d-array containing all disctinct models from ``tasklist``.