code: def es_properties(layouts, device):
      num_outputs = len(layouts)
  
      def gen_data():
          yield np.random.rand(num_outputs, 3, 4, 5)
  
      inp = fn.external_source(
          source=gen_data,
          layout=layouts,
          num_outputs=num_outputs,
          batch=False,
          cycle=True,
          device=device,
      )
      return tuple(fn.get_property(i, key="layout") for i in inp)
  
imports: from nvidia.dali import pipeline_def
  import os
  import numpy
  from nvidia.dali import fn
  from test_utils import get_dali_extra_path
  from nose_utils import raises
  import tempfile
label_desc: Use image node_id 12 for calling a global function with example usage: es_properties(layouts, device) and returns: tuple