code: def test_tf_dataset_wrong_placement_cpu():
      batch_size = 12
      num_threads = 4
      iterations = 10
  
      pipeline = get_image_pipeline(batch_size, num_threads, "cpu", 0)
  
      with tf.device("/gpu:0"):
          dataset = get_dali_dataset_from_pipeline(pipeline, "gpu", 0)
  
      run_dataset_in_graph(dataset, iterations)
  
imports: import itertools
  import numpy
  import random
  import tensorflow
  from nose.tools import with_setup
  from nose_utils import raises
  from test_dali_tf_dataset_pipelines import FixedSampleIterator, external_source_tester, external_source_converter_with_fixed_value, external_source_converter_with_callback, RandomSampleIterator, external_source_converter_multiple, get_min_shape_helper, external_source_tester_multiple
  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 run_tf_dataset_graph, skip_inputs_for_incompatible_tf, run_dataset_in_graph, run_tf_dataset_multigpu_graph_manual_placement, get_dali_dataset_from_pipeline, get_image_pipeline
label_desc: Use image node_id 17 for calling a global function with example usage: test_tf_dataset_wrong_placement_cpu() without return types