code: def validate(self):
          
          try:
              for pkg in self.resolved_packages:
                  pkg.validate_data()
          except RezError as e:
              raise ResolvedContextError("%s: %s" % (e.__class__.__name__, str(e)))
docs: Validate the context.