<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_resolved_package(self, name):
 """Returns a `Variant` object or None if the package is not in the resolve. """

        pkgs = [x for x in self._resolved_packages if x.name == name]
        return pkgs[0] if pkgs else None