code: def load_p2th_privkey_into_local_node(provider: RpcNode, prod: bool=True) -> None:
      '''Load PeerAssets P2TH privkey into the local node.'''
  
      assert isinstance(provider, RpcNode), {"error": "Import only works with local node."}
      error = {"error": "Loading P2TH privkey failed."}
      pa_params = param_query(provider.network)
  
      if prod:
          provider.importprivkey(pa_params.P2TH_wif, "PAPROD")
          #  now verify if ismine == True
          if not provider.validateaddress(pa_params.P2TH_addr)['ismine']:
              raise P2THImportFailed(error)
      else:
          provider.importprivkey(pa_params.test_P2TH_wif, "PATEST")
          if not provider.validateaddress(pa_params.test_P2TH_addr)['ismine']:
              raise P2THImportFailed(errorf load_p2th_privkey_into_local_node(provider: RpcNode, prod: bool=True) -> None:
      '''Load PeerAssets P2TH privkey into the local node.'''
  
      assert isinstance(provider, RpcNode), {"error": "Import only works with local node."}
      error = {"error": "Loading P2TH privkey failed."}
      pa_params = param_query(provider.network)
  
      if prod:
          provider.importprivkey(pa_params.P2TH_wif, "PAPROD")
          #  now verify if ismine == True
          if not provider.validateaddress(pa_params.P2TH_addr)['ismine']:
              raise P2THImportFailed(error)
      else:
          provider.importprivkey(pa_params.test_P2TH_wif, "PATEST")
          if not provider.validateaddress(pa_params.test_P2TH_addr)['ismine']:
              raise P2THImportFailed(error)
docs: Load PeerAssets P2TH privkey into the local node.