code: def deserialize_sample_meta(
      buffer: BufShmChunk, shared_batch_meta: SharedBatchMeta
  ):
      """Helper to deserialize SampleMeta from memory based on SharedBatchMeta."""
      sbm = shared_batch_meta
      if sbm.meta_size == 0:
          return []
      pickled_meta = buffer.buf[
          sbm.meta_offset : sbm.meta_offset + sbm.meta_size
      ]
      samples_meta = pickle.loads(pickled_meta)
      return samples_meta
  
imports: import os
  from nvidia.dali._multiproc import shared_mem
  from nvidia.dali._multiproc.messages import ShmMessageDesc
  from nvidia.dali._utils.external_source_impl import assert_cpu_sample_data_type, sample_to_numpy
  import pickle
label_desc: Use image node_id 5 for calling a global function with example usage: deserialize_sample_meta(buffer, shared_batch_meta) and returns: samples_meta, list