code: def resolve(base_path, spec_path):
      if spec_path is None:
          return None
      if not os.path.isabs(spec_path):
          spec_path = os.path.join(base_path, spec_path)
      return spec_path
  
imports: from __future__ import absolute_import, division, print_function
  import os
  import sys
  import json
  import tensorflow
  import tensorflow.compat.v1.logging
  import logging
  import glob
  from deepspeech_training.util.audio import AudioFile
  from deepspeech_training.util.config import Config, initialize_globals
  from deepspeech_training.util.feeding import split_audio_file
  from deepspeech_training.util.flags import create_flags, FLAGS
  from deepspeech_training.util.logging import log_error, log_info, log_progress, create_progressbar
  from ds_ctcdecoder import ctc_beam_search_decoder_batch, Scorer
  from multiprocessing import Process, cpu_count
label_desc: Use image node_id 5 for calling a global function with example usage: resolve(base_path, spec_path) and returns: spec_path, None