class_docstr: Printer which converts a SymPy expression into a maple code.
code: def _print_Piecewise(self, expr):
      if (expr.args[-1].cond is not True) and (
          expr.args[-1].cond != S.BooleanTrue
      ):
          # We need the last conditional to be a True, otherwise the resulting
          # function may not return a result.
          raise ValueError(
              "All Piecewise expressions must contain an "
              "(expr, True) statement to be used as a default "
              "condition. Without one, the generated "
              "expression may not evaluate to anything under "
              "some condition."
          )
      _coup_list = [
          (
              "{c}, {e}".format(c=self._print(c), e=self._print(e))
              if c is not True and c is not S.BooleanTrue
              else "{e}".format(e=self._print(e))
          )
          for e, c in expr.args
      ]
      _inbrace = ", ".join(_coup_list)
      return "piecewise({_inbrace})".format(_inbrace=_inbrace)
  
imports: from sympy.core import S
  from sympy.core.numbers import Integer, IntegerConstant, equal_valued
  from sympy.printing.codeprinter import CodePrinter
  from sympy.printing.precedence import precedence, PRECEDENCE
  import sympy
label_desc: Use image node_id 10 for calling the MapleCodePrinter obj's underlying member method code with example usage: obj._print_Piecewise(expr) and returns: str