code: def do_pdp_descriptor(conf, cert=None, enc_cert=None):
      
      pdp = md.PDPDescriptor()
  
      pdp.protocol_support_enumeration = samlp.NAMESPACE
  
      endps = conf.getattr("endpoints", "pdp")
  
      if endps:
          for (endpoint, instlist) in do_endpoints(endps,
                                                   ENDPOINTS["pdp"]).items():
              setattr(pdp, endpoint, instlist)
  
      _do_nameid_format(pdp, conf, "pdp")
  
      if cert:
          pdp.key_descriptor = do_key_descriptor(cert, enc_cert,
                                                 use=conf.metadata_key_usage)
  
      return pdp
docs: Create a Policy Decision Point descriptor