class_docstr: Constraint using similarity between sentence encodings of x and x_adv
  where the text embeddings are created using the Universal Sentence
  Encoder.
code: def __init__(
      self, threshold=0.8, large=False, metric="angular", **kwargs
  ):
      super().__init__(threshold=threshold, metric=metric, **kwargs)
      if large:
          tfhub_url = "https://tfhub.dev/google/universal-sentence-encoder-large/5"
      else:
          tfhub_url = (
              "https://tfhub.dev/google/universal-sentence-encoder/3"
          )
  
      self._tfhub_url = tfhub_url
      # Lazily load the model
      self.model = None
  
file_path: TextAttack/textattack/constraints/semantics/sentence_encoders/universal_sentence_encoder/universal_sentence_encoder.py
imports: from textattack.constraints.semantics.sentence_encoders import SentenceEncoder
  from textattack.shared.utils import LazyLoader
label_desc: Use image node_id 1 to create a new UniversalSentenceEncoder object from inherited base classes: SentenceEncoder with example: obj = UniversalSentenceEncoder(threshold, large, metric)