docs: def getConstraint(self, name):
          """
          Get the constraint with the corresponding name.
  
          Args:
              name: Name of the constraint to be found.
  
          Raises:
              TypeError: if the specified constraint does not exist.
          """
          return lock_and_call(
              lambda: Constraint(self._impl.getConstraint(name)),
              self._lock
          )