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