Protect the tag against write access, i.e. make it read-only.

        :meth:`Type2Tag.protect` switches an NFC Forum Type 2 Tag to
        read-only state by setting all lock bits to 1. This operation
        can not be reversed. If the tag is not an NFC Forum Tag,
        i.e. it is not formatted with an NDEF Capability Container,
        the :meth:`protect` method simply returns :const:`False`.

        A generic Type 2 Tag can not be protected with a password. If
        the *password* argument is provided, the :meth:`protect`
        method does nothing else than return :const:`False`. The
        *read_protect* and *protect_from* arguments are safely
        ignored.

def protect(self, password=None, read_protect=False, protect_from=0):
        """Protect the tag against write access, i.e. make it read-only.

        :meth:`Type2Tag.protect` switches an NFC Forum Type 2 Tag to
        read-only state by setting all lock bits to 1. This operation
        can not be reversed. If the tag is not an NFC Forum Tag,
        i.e. it is not formatted with an NDEF Capability Container,
        the :meth:`protect` method simply returns :const:`False`.

        A generic Type 2 Tag can not be protected with a password. If
        the *password* argument is provided, the :meth:`protect`
        method does nothing else than return :const:`False`. The
        *read_protect* and *protect_from* arguments are safely
        ignored.

        """
        return super(Type2Tag, self).protect(
            password, read_protect, protect_from)