<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fromLatex(tex, *args, **kwargs):
 """Creates abstraction using Latex :param str tex: Latex :return: TreeOfContents object """

        source = TexSoup(tex)
        return TOC('[document]', source=source,
            descendants=list(source.descendants), *args, **kwargs)