code: def run_tf_dataset_with_random_input(
      dev, max_shape, dtype, batch="dataset"
  ):
      min_shape = get_min_shape_helper(batch, max_shape)
      it = RandomSampleIterator(
          max_shape, dtype(0), min_shape=min_shape
      )
      get_pipeline_desc = external_source_tester(
          max_shape, dtype, it, batch=batch
      )
      to_dataset = external_source_converter_with_callback(
          RandomSampleIterator,
          max_shape,
          dtype,
          0,
          1e10,
          min_shape,
          batch=batch,
      )
      run_tf_dataset_eager_mode(
          dev,
          get_pipeline_desc=get_pipeline_desc,
          to_dataset=to_dataset,
      )
  
imports: import tensorflow
  import numpy
  from nvidia.dali import Pipeline, pipeline_def
  import nvidia.dali.plugin.tf
  from nvidia.dali.plugin.tf.experimental import Input
  from nvidia.dali import fn
  from nose.tools import with_setup
  from test_dali_tf_dataset_pipelines import FixedSampleIterator, RandomSampleIterator, external_source_converter_multiple, external_source_converter_with_callback, external_source_converter_with_fixed_value, external_source_tester, external_source_tester_multiple, get_min_shape_helper, many_input_pipeline
  from test_dali_tf_es_pipelines import external_source_to_tf_dataset, gen_tf_with_dali_external_source, get_external_source_pipe
  from test_utils_tensorflow import get_dali_dataset_from_pipeline, get_image_pipeline, get_mix_size_image_pipeline, run_dataset_eager_mode, run_tf_dataset_eager_mode, run_tf_dataset_multigpu_eager_manual_placement, run_tf_dataset_multigpu_eager_mirrored_strategy, skip_for_incompatible_tf, skip_inputs_for_incompatible_tf
  from nose_utils import raises
  import random
  import itertools
label_desc: Use image node_id 6 for calling a global function with example usage: run_tf_dataset_with_random_input(dev, max_shape, dtype, batch) without return types