code: def _impl_arg_inputs_scoped_uninitialized(additional_kwargs={}):
      test_data_root = get_dali_extra_path()
      caffe_db_folder = os.path.join(test_data_root, "db", "lmdb")
      bs = 10
      kwargs = {"batch_size": bs, "num_threads": 4, "device_id": 0}
  
      @experimental.pipeline_def(
          enable_conditionals=True, **kwargs, **additional_kwargs
      )
      def scoped_transform_pipe():
          encoded, _ = fn.readers.caffe(path=caffe_db_folder)
          decoded = fn.decoders.image(encoded, device="mixed")
          pred = fn.random.coin_flip(dtype=types.DALIDataType.BOOL)
          angle = fn.random.uniform(values=[10, 20, 30])
          if pred:
              rotate_transform = fn.transforms.rotation(angle=angle)
              output = fn.warp_affine(decoded, matrix=rotate_transform)
          else:
              output = decoded
          # Check that the rotate_transform is indeed local to the branch by trying to return it
          # and generating uninitialized error.
          return output, rotate_transform
  
      with assert_raises(
          RuntimeError,
          glob=(
              "Encountered inconsistent outputs out of the `if/else` control flow"
              " statement. Variables need to be initialized in every code path"
              " (both `if` branches). Variable 'rotate_transform' must also be"
              " initialized in the `else` branch."
          ),
      ):
          pipe = scoped_transform_pipe()
          pipe.build()
          pipe.run()
  
imports: from nvidia.dali.pipeline import pipeline_def, experimental
  import nvidia.dali.fn
  import nvidia.dali.types
  from nvidia.dali.types import SampleInfo
  from nvidia.dali import _conditionals
  from nvidia.dali.data_node import DataNode
  import numpy
  import os
  from test_utils import check_batch, compare_pipelines
  from nose_utils import assert_raises
  from test_utils import get_dali_extra_path
  from nose2.tools import params
  import itertools
label_desc: Use image node_id 27 for calling a global function with example usage: _impl_arg_inputs_scoped_uninitialized(additional_kwargs) and returns: output,  rotate_transform