code: def __init__(self, cfg):
      self.stat = BleuStat()
      self.pad = cfg.pad
      self.eos = cfg.eos
      self.unk = cfg.unk
  
      try:
          from fairseq import libbleu
      except ImportError as e:
          sys.stderr.write(
              "ERROR: missing libbleu.so. run `pip install --editable .`\n"
          )
          raise e
  
      self.C = ctypes.cdll.LoadLibrary(libbleu.__file__)
  
      self.reset()
  
imports: import ctypes
  import math
  import sys
  from dataclasses import dataclass, field
  import torch
  from fairseq.dataclass import FairseqDataclass
  from fairseq.scoring import BaseScorer, register_scorer
  from fairseq.scoring.tokenizer import EvaluationTokenizer
label_desc: Use image node_id 1 to create a new Scorer object from inherited base classes: object with example: obj = Scorer(cfg)