<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_objects(self, subject, predicate):
 """ Search for all subjects related to the specified subject and predicate. :param subject: :param object: :rtype: generator of RDF statements """

        for statement in self.spo_search(subject=subject, predicate=predicate):
            yield str(statement[2])