class_docstr: Represents a ring domain. 
class_docstr_tok: ["Represents","a","ring","domain","."]
docstr: Returns inversion of ``a mod b``. 
docstr_tok: ["Returns","inversion","of","``","a","mod","b","``","."]
code: def invert(self, a, b):
      """Returns inversion of ``a mod b``."""
      s, t, h = self.gcdex(a, b)
  
      if self.is_one(h):
          return s % b
      else:
          raise NotInvertible("zero divisor")
  
file_path: sympy/sympy/polys/domains/ring.py
imports: from sympy.polys.domains.domain import Domain
  from sympy.polys.polyerrors import ExactQuotientFailed, NotInvertible, NotReversible
  from sympy.utilities import public
label_desc: Use image node_id 6 for calling the Ring obj's underlying member method code with example usage: obj.invert(a, b) and returns: unknown