class_docstr: A predicate that operates on file extensions
class_docstr_tok: ["A","predicate","that","operates","on","file","extensions"]
code: def __init__(self):
      subpredicates = (
          IS_TIF_PREDICATE,
          IS_JPEG_PREDICATE,
          IS_PNG_PREDICATE,
          IS_IMAGE_PREDICATE,
          IS_FLEX_PREDICATE,
          IS_MOVIE_PREDICATE,
      )
      predicates = [
          DoesPredicate(subpredicates, "Is"),
          DoesNotPredicate(subpredicates, "Is not"),
      ]
      FilterPredicate.__init__(
          self,
          "extension",
          "Extension",
          self.fn_filter,
          predicates,
          doc="The rule applies to the file extension",
      )
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/setting/filter/_extension_predicate.py
imports: import os
  from ._does_not_predicate import DoesNotPredicate
  from ._does_predicate import DoesPredicate
  from ._filter_predicate import FilterPredicate
  from .._file_collection_display import FileCollectionDisplay
  from ...utilities.image import is_image_extension
label_desc: Use image node_id 1 to create a new ExtensionPredicate object from inherited base classes: FilterPredicate with example: obj = ExtensionPredicate()