code: def BCELossFlat(
      *args,
      axis: int = -1,  # Class axis
      floatify: bool = True,  # Convert `targ` to `float`
      **kwargs,
  ):
      "Same as `nn.BCELoss`, but flattens input and target."
      return BaseLoss(
          nn.BCELoss,
          *args,
          axis=axis,
          floatify=floatify,
          is_2d=False,
          **kwargs,
      )
  
imports: from __future__ import annotations
  from .imports import *
  from .torch_imports import *
  from .torch_core import *
  from .layers import *
label_desc: Use image node_id 1 for calling a global function with example usage: BCELossFlat() and returns: BaseLoss