code: def maple_code(expr, assign_to=None, **settings):
      r"""Converts ``expr`` to a string of Maple code.
  
      Parameters
      ==========
  
      expr : Expr
          A SymPy expression to be converted.
      assign_to : optional
          When given, the argument is used as the name of the variable to which
          the expression is assigned.  Can be a string, ``Symbol``,
          ``MatrixSymbol``, or ``Indexed`` type.  This can be helpful for
          expressions that generate multi-line statements.
      precision : integer, optional
          The precision for numbers such as pi  [default=16].
      user_functions : dict, optional
          A dictionary where keys are ``FunctionClass`` instances and values are
          their string representations.  Alternatively, the dictionary value can
          be a list of tuples i.e. [(argument_test, cfunction_string)].  See
          below for examples.
      human : bool, optional
          If True, the result is a single string that may contain some constant
          declarations for the number symbols.  If False, the same information is
          returned in a tuple of (symbols_to_declare, not_supported_functions,
          code_text).  [default=True].
      contract: bool, optional
          If True, ``Indexed`` instances are assumed to obey tensor contraction
          rules and the corresponding nested loops over indices are generated.
          Setting contract=False will not generate loops, instead the user is
          responsible to provide values for the indices in the code.
          [default=True].
      inline: bool, optional
          If True, we try to create single-statement code instead of multiple
          statements.  [default=True].
  
      """
      return MapleCodePrinter(settings).doprint(expr, assign_to)
  
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 1 for calling a global function with example usage: maple_code(expr, assign_to) and returns: MapleCodePrinter