class_docstr: Code generator of fast monomial arithmetic functions. 
class_docstr_tok: ["Code","generator","of","fast","monomial","arithmetic","functions","."]
code: def div(self):
      name = "monomial_div"
      template = dedent(
          """\
          def %(name)s(A, B):
              (%(A)s,) = A
              (%(B)s,) = B
              %(RAB)s
              return (%(R)s,)
          """
      )
      A = self._vars("a")
      B = self._vars("b")
      RAB = [
          "r%(i)s = a%(i)s - b%(i)s\n    if r%(i)s < 0: return None"
          % {"i": i}
          for i in range(self.ngens)
      ]
      R = self._vars("r")
      code = template % {
          "name": name,
          "A": ", ".join(A),
          "B": ", ".join(B),
          "RAB": "\n    ".join(RAB),
          "R": ", ".join(R),
      }
      return self._build(code, name)
  
imports: from itertools import combinations_with_replacement, product
  from textwrap import dedent
  from sympy.core import Mul, S, Tuple, sympify
  from sympy.polys.polyerrors import ExactQuotientFailed
  from sympy.polys.polyutils import PicklableWithSlots, dict_from_expr
  from sympy.utilities import public
  from sympy.utilities.iterables import is_sequence, iterable
label_desc: Use image node_id 8 for calling the MonomialOps obj's underlying member method code with example usage: obj.div() and returns: self