def setIdentityPolicyInstance(self, identityPolicyObj):
assert not self.identityPolicy<EOL>assert isinstance(identityPolicyObj, RegionIdentityPolicyBase)<EOL>self.identityPolicy = identityPolicyObj<EOL>return<EOL>
TestRegion command that sets identity policy instance.  The instance
        MUST be derived from TestRegion's RegionIdentityPolicyBase class.

        Users MUST set the identity instance BEFORE running the network

        Exception: AssertionError if identity policy instance has already been set
                   or if the passed-in instance is not derived from
                   RegionIdentityPolicyBase.