class_docstr: Binary cross-entropy loss for classification tasks
  
  Args:
      opts: command-line arguments
code: def __init__(self, opts: argparse.Namespace, *args, **kwargs) -> None:
      super().__init__(opts, *args, **kwargs)
      self.reduction = getattr(
          opts,
          "loss.classification.binary_cross_entropy.reduction",
      )
  
file_path: ml-cvnets/loss_fn/classification/binary_cross_entropy.py
imports: import argparse
  from torch import Tensor
  from torch.nn import functional
  from loss_fn import LOSS_REGISTRY
  from loss_fn.classification.base_classification_criteria import BaseClassificationCriteria
label_desc: Use image node_id 1 to create a new BinaryCrossEntropy object from inherited base classes: BaseClassificationCriteria with example: obj = BinaryCrossEntropy(opts)