code: def apply(self, query: Query, value: bool) -> Query:
      filter_clause = or_(SqlaTable.sql.is_(None), SqlaTable.sql == "")
  
      if not value:
          filter_clause = not_(filter_clause)
  
      return query.filter(filter_clause)
  
file_path: superset/superset/datasets/filters.py
imports: from flask_babel import lazy_gettext
  from sqlalchemy import not_, or_
  from sqlalchemy.orm.query import Query
  from superset.connectors.sqla.models import SqlaTable
  from superset.views.base import BaseFilter
label_desc: Use image node_id 1 for calling the DatasetIsNullOrEmptyFilter obj's underlying member method code with example usage: obj.apply(query, value) and returns: query