code: def unpack_maybe(sample):
      """
      Loads the supplied sample from disk (or the network) if the audio isn't loaded in to memory already.
      """
      if hasattr(sample, "unpack"):
          realized_sample = sample.unpack()
      else:
          realized_sample = sample
      return realized_sample
  
imports: import os
  import io
  import csv
  import json
  import tarfile
  from pathlib import Path
  from functools import partial
  from .helpers import KILOBYTE, MEGABYTE, GIGABYTE, Interleaved, LenMap
  from .audio import Sample, AUDIO_TYPE_PCM, AUDIO_TYPE_OPUS, SERIALIZABLE_AUDIO_TYPES, get_loadable_audio_type_from_extension, write_wav
  from .io import open_remote, is_remote_path
label_desc: Use image node_id 1 for calling a global function with example usage: unpack_maybe(sample) and returns: realized_sample