def parenthesize(self, item, level):
        printed = self._print(item)

        if precedence(item) <= level:
            return "(%s)" % printed
        else:
            return printed
dataset/ETHPy150Open saullocastro/mapy/mapy/sympytools/mathematica_printer.py/MathematicaPrinter.parenthesize/original