code: def update_w3(self, w3: Web3) -> "Package":
          
          validate_w3_instance(w3)
          return Package(self.manifest, w3, self.uri)
docs: Returns a new instance of `Package` containing the same manifest,
          but connected to a different web3 instance.
  
          .. doctest::
  
             >>> new_w3 = Web3(Web3.EthereumTesterProvider())
             >>> NewPackage = OwnedPackage.update_w3(new_w3)
             >>> assert NewPackage.w3 == new_w3
             >>> assert OwnedPackage.manifest == NewPackage.manifest