def METHOD_NAME(cls, netbox):
    if cls.RESTRICT_TO_VENDORS:
        return (
            netbox.type
            and netbox.type.get_enterprise_id() in cls.RESTRICT_TO_VENDORS
        )
    else:
        return True