def METHOD_NAME(self, name):
    """
    Check if the given name refers to a namespace package entry. Used by PyiFrozenImporter at runtime.
    """
    entry = self.toc.get(name)
    if entry is None:
        return False
    typecode, entry_offset, entry_length = entry
    return typecode == PYZ_ITEM_NSPKG