code: def invert(x, m):
      """Modular inverse of x modulo m.
  
      Returns y such that x*y == 1 mod m.
  
      Uses ``math.pow`` but reproduces the behaviour of ``gmpy2.invert``
      which raises ZeroDivisionError if no inverse exists.
      """
      try:
          return pow(x, -1, m)
      except ValueError:
          raise ZeroDivisionError("invert() no inverse exists")
  
imports: import sys
  import math
  import mpmath.libmp
label_desc: Use image node_id 10 for calling a global function with example usage: invert(x, m) and returns: pow