code: def binary_cross_entropy(
      input,
      target,
      weight=None,
      size_average=None,
      reduce=None,
      reduction="mean",
  ):
      if size_average is not None or reduce is not None:
          reduction = _get_reduction_string(size_average, reduce)
      result = ivy.binary_cross_entropy(
          target, input, epsilon=0.0, reduction=reduction
      )
  
      if weight is not None:
          result = ivy.multiply(weight, result)
  
      return result
  
imports: import ivy
  import ivy.functional.frontends.torch
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
label_desc: Use image node_id 6 for calling a global function with example usage: binary_cross_entropy(input, target, weight, size_average, reduce, reduction) and returns: result