class_docstr: An abstract class that represents constraints which are applied before
  the transformation.
  
  These restrict which words are allowed to be modified during the
  transformation. For example, we might not allow stopwords to be
  modified.
docstr: Checks if this constraint is compatible with the given
  transformation. For example, the ``WordEmbeddingDistance`` constraint
  compares the embedding of the word inserted with that of the word
  deleted. Therefore it can only be applied in the case of word swaps,
  and not for transformations which involve only one of insertion or
  deletion.
  
  Args:
      transformation: The ``Transformation`` to check compatibility with.
code: def check_compatibility(self, transformation):
      """Checks if this constraint is compatible with the given
      transformation. For example, the ``WordEmbeddingDistance`` constraint
      compares the embedding of the word inserted with that of the word
      deleted. Therefore it can only be applied in the case of word swaps,
      and not for transformations which involve only one of insertion or
      deletion.
  
      Args:
          transformation: The ``Transformation`` to check compatibility with.
      """
      return True
  
file_path: TextAttack/textattack/constraints/pre_transformation_constraint.py
imports: from abc import ABC, abstractmethod
  from textattack.shared.utils import ReprMixin
label_desc: Use image node_id 3 for calling the PreTransformationConstraint obj's underlying member method code with example usage: obj.check_compatibility(transformation) and returns: True