code: def captured_output():
      """Capture std_out and std_err within context."""
      new_out, new_err = StringIO(), StringIO()
      old_out, old_err = sys.stdout, sys.stderr
      try:
          sys.stdout, sys.stderr = new_out, new_err
          yield sys.stdout, sys.stderr
      finally:
          sys.stdout, sys.stderr = old_out, old_err
  
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 1 for calling a global function with example usage: captured_output() without return types