code: def __init__(self, cfg):
      super(BertScoreScorer, self).__init__(cfg)
      try:
          import bert_score as _bert_score
      except ImportError:
          raise ImportError(
              "Please install BERTScore: pip install bert-score"
          )
  
      self.cfg = cfg
      self._bert_score = _bert_score
      self.scores = None
  
file_path: fairseq/fairseq/scoring/bertscore.py
imports: from dataclasses import dataclass, field
  import numpy
  from fairseq.dataclass import FairseqDataclass
  from fairseq.scoring import BaseScorer, register_scorer
label_desc: Use image node_id 1 to create a new BertScoreScorer object from inherited base classes: BaseScorer with example: obj = BertScoreScorer(cfg)