code: def test_deprecated_double_def():
      error_msg = (
          "Usage of `{}` is deprecated in favor of `output_{}`*only `output_{}` "
          "should be provided."
      )
      shapes_error_msg = error_msg.format(*(("shapes",) * 3))
      yield raises(ValueError, shapes_error_msg)(
          dali_pipe_deprecated
      ), {
          "shapes": 2,
          "output_shapes": 2,
          "dtypes": tf.uint8,
      }, 2, tf.uint8, dali_types.UINT8, 1, 2
      dtypes_error_msg = error_msg.format(*(("dtypes",) * 3))
      yield raises(ValueError, dtypes_error_msg)(
          dali_pipe_deprecated
      ), {
          "shapes": 2,
          "dtypes": tf.uint8,
          "output_dtypes": tf.uint8,
      }, 2, tf.uint8, dali_types.UINT8, 1, 2
  
imports: import tensorflow
  import nvidia.dali.ops
  import nvidia.dali.pipeline
  import nvidia.dali.plugin.tf
  import nvidia.dali.types
  from test_utils_tensorflow import skip_for_incompatible_tf
  import os
  from nose.tools import assert_equals
  from nose_utils import raises
  import itertools
  import warnings
label_desc: Use image node_id 18 for calling a global function with example usage: test_deprecated_double_def() without return types