code: def _get_batch_name(sample):
      
      batch = dd.get_batch(sample) or dd.get_sample_name(sample)
      if isinstance(batch, (list, tuple)) and len(batch) > 1:
          batch = dd.get_sample_name(sample)
      return batch
docs: Retrieve batch name for use in SV calling outputs.
  
      Handles multiple batches split via SV calling.