class_docstr: Computes the binary cross entropy loss over a bag-of-words of target tokens.
class_docstr_tok: ["Computes","the","binary","cross","entropy","loss","over","a","bag-of-words","of","target","tokens","."]
code: def create_metric(self) -> "LossMetric":
      return PerplexityMetric(prefix=self._metric_prefix)
  
imports: import logging
  import math
  from abc import ABC, abstractmethod
  from typing import Any, Dict, Optional, Tuple
  import torch
  import numpy
  from .None import constants
  from .None import utils
label_desc: Use image node_id 3 for calling the BinaryCrossEntropyBowLoss obj's underlying member method code with example usage: obj.create_metric() and returns: PerplexityMetric