code: def getConstraints(self):
          
          constraints = lock_and_call(
              lambda: self._impl.getConstraints(),
              self._lock
          )
          return EntityMap(constraints, Constraint)
docs: Get all the constraints declared.