code: def get_resolved_package(self, name):
          
          pkgs = [x for x in self._resolved_packages if x.name == name]
          return pkgs[0] if pkgs else None
docs: Returns a `Variant` object or None if the package is not in the
          resolve.