class_docstr: An abstract class that represents constraints on adversial text
  examples. Constraints evaluate whether transformations from a
  ``AttackedText`` to another ``AttackedText`` meet certain conditions.
  
  Args:
      compare_against_original (bool): If `True`, the reference text should be the original text under attack.
          If `False`, the reference text is the most recent text from which the transformed text was generated.
          All constraints must have this attribute.
class_docstr_tok: ["An","abstract","class","that","represents","constraints","on","adversial","text","examples",".","Constraints","evaluate","whether","transformations","from","a","``","AttackedText","``","to","another","``","AttackedText","``","meet","certain","conditions",".","Args",":","compare_against_original","(","bool",")",":","If","`","True","`",",","the","reference","text","should","be","the","original","text","under","attack",".","If","`","False","`",",","the","reference","text","is","the","most","recent","text","from","which","the","transformed","text","was","generated",".","All","constraints","must","have","this","attribute","."]
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.
docstr_tok: ["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/constraint.py
imports: from abc import ABC, abstractmethod
  import textattack
  from textattack.shared.utils import ReprMixin
label_desc: Use image node_id 6 for calling the Constraint obj's underlying member method code with example usage: obj.check_compatibility(transformation) and returns: True