def providerIsAuthoritative(providerID, canonicalID):
 lastbang = canonicalID.rindex('!')
 parent = canonicalID[:lastbang]
 return (parent == providerID)

def providerIsAuthoritative ( providerID , canonicalID ) : lastbang = canonicalID . rindex ( '!' ) parent = canonicalID [ : lastbang ] return ( parent == providerID )
is this provider id authoritative for this xri? @returntype: bool .