class_docstr: docstring
class_docstr_tok: ["docstring"]
code: def __eq__(self, other):
      if not isinstance(other, DomainScalar):
          return NotImplemented
      return (
          self.element == other.element and self.domain == other.domain
      )
  
imports: from ..constructor import construct_domain
  from sympy.polys.domains import Domain, ZZ
label_desc: Use image node_id 19 for calling the DomainScalar obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown, NotImplemented