code: def _impl_uninitialized(additional_kwargs={}):
      bs = 10
      kwargs = {
          "batch_size": bs,
          "num_threads": 4,
          "device_id": 0,
      }
  
      @experimental.pipeline_def(
          enable_conditionals=True, **kwargs, **additional_kwargs
      )
      def one_branch():
          pred = fn.random.coin_flip(dtype=types.DALIDataType.BOOL)
          if pred:
              output = fn.random.uniform()
          return output
  
      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 'output' must also be initialized"
              " in the `else` branch."
          ),
      ):
          p = one_branch()
          p.build()
          p.run()
  
      @experimental.pipeline_def(enable_conditionals=True, **kwargs)
      def one_return():
          pred = fn.random.coin_flip(dtype=types.DALIDataType.BOOL)
          if pred:
              return fn.random.uniform()
  
      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). The `else` branch must also have a return"
              " statement."
          ),
      ):
          p = one_return()
          p.build()
          p.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 31 for calling a global function with example usage: _impl_uninitialized(additional_kwargs) and returns: output, fn