class_docstr: tests for BinaryCrossesntropy StrongConvex loss.
docstr: Test logger warning from StrongConvexBinaryCrossentropy.
  
  Args:
    init_args: arguments to init the object with.
    fn: function to test
    args: arguments to above function
    print_res: print result that should have been printed.
docstr_tok: ["Test","logger","warning","from","StrongConvexBinaryCrossentropy",".","Args",":","init_args",":","arguments","to","init","the","object","with",".","fn",":","function","to","test","args",":","arguments","to","above","function","print_res",":","print","result","that","should","have","been","printed","."]
code: def test_prints(self, init_args, fn, args, print_res):
      """Test logger warning from StrongConvexBinaryCrossentropy.
  
      Args:
        init_args: arguments to init the object with.
        fn: function to test
        args: arguments to above function
        print_res: print result that should have been printed.
      """
      with captured_output() as (
          out,
          err,
      ):  # pylint: disable=unused-variable
          loss = StrongConvexBinaryCrossentropy(*init_args)
          if fn is not None:
              getattr(loss, fn, lambda *arguments: print("error"))(
                  *args
              )
      self.assertRegexMatch(err.getvalue().strip(), [print_res])
  
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 5 for calling the BinaryCrossesntropyTests obj's underlying member method code with example usage: obj.test_prints(init_args, fn, args, print_res) without return types