code: def legendre(x, y):
      """Legendre symbol (x / y).
  
      Following the implementation of gmpy2,
      the error is raised only when y is an even number.
      """
      if y <= 0 or not y % 2:
          raise ValueError("y should be an odd prime")
      x %= y
      if not x:
          return 0
      if pow(x, (y - 1) // 2, y) == 1:
          return 1
      return -1
  
imports: import sys
  import math
  import mpmath.libmp
label_desc: Use image node_id 11 for calling a global function with example usage: legendre(x, y) and returns: unknown, int, int