class_docstr: tests for BinaryCrossesntropy StrongConvex loss.
docstr: Test that fn of BinaryCrossentropy loss returns the correct result.
  
  Args:
    init_args: init values for loss instance
    fn: the fn to test
    args: the arguments to above function
    result: the correct result from the fn
docstr_tok: ["Test","that","fn","of","BinaryCrossentropy","loss","returns","the","correct","result",".","Args",":","init_args",":","init","values","for","loss","instance","fn",":","the","fn","to","test","args",":","the","arguments","to","above","function","result",":","the","correct","result","from","the","fn"]
code: def test_fns(self, init_args, fn, args, result):
      """Test that fn of BinaryCrossentropy loss returns the correct result.
  
      Args:
        init_args: init values for loss instance
        fn: the fn to test
        args: the arguments to above function
        result: the correct result from the fn
      """
      loss = StrongConvexHuber(*init_args)
      expected = getattr(loss, fn, lambda: "fn not found")(*args)
      if hasattr(expected, "numpy") and hasattr(
          result, "numpy"
      ):  # both tensor
          expected = expected.numpy()
          result = result.numpy()
      if hasattr(expected, "l2") and hasattr(
          result, "l2"
      ):  # both l2 regularizer
          expected = expected.l2
          result = result.l2
      self.assertEqual(expected, result)
  
imports: from contextlib import contextmanager
  from io import StringIO
  import sys
  from absl.testing import parameterized
  import tensorflow.compat.v1
  from tensorflow.compat.v1.python.framework import test_util
  from tensorflow.compat.v1.python.keras import keras_parameterized
  from tensorflow.compat.v1.python.keras.regularizers import L1L2
  from tensorflow_privacy.privacy.bolt_on.losses import StrongConvexBinaryCrossentropy
  from tensorflow_privacy.privacy.bolt_on.losses import StrongConvexHuber
  from tensorflow_privacy.privacy.bolt_on.losses import StrongConvexMixin
label_desc: Use image node_id 4 for calling the HuberTests obj's underlying member method code with example usage: obj.test_fns(init_args, fn, args, result) without return types