<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _search_for_view(self, obj):
 """Searches for TempyREPR class declarations in the child's class. If at least one TempyREPR is found, it uses the best one to make a Tempy object. Otherwise the original object is returned. """

        evaluator = partial(self._evaluate_tempyREPR, obj)
        sorted_reprs = sorted(
            _filter_classes(obj.__class__.__dict__.values(), TempyREPR),
            key=evaluator,
            reverse=True,
        )
        if sorted_reprs:
            # If we find some TempyREPR, we return the one with the best score.
            return sorted_reprs[0]
        return None