code: def __init__(self, margin=0.0):
      super(CosineEmbeddingLoss, self).__init__()
      self.margin = margin
      self.epsilon = 1e-12
  
file_path: PaddleOCR/ppocr/losses/rec_aster_loss.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import nn
label_desc: Use image node_id 1 to create a new CosineEmbeddingLoss object from inherited base classes: nn with example: obj = CosineEmbeddingLoss(margin)