code: def results_long(df, csv_name):
      """Labels the results as from train or validation datasets"""
      d_split = pd.read_csv(csv_name)
      d_split.columns = ("ids", "fold")
      merged_df = pd.merge(df, d_split)
      df_long = pd.melt(merged_df, id_vars=["ids", "fold"])
      return df_long
  
file_path: NiftyNet/demos/unet/unet_demo_utils.py
imports: import os
  import nibabel
  import pandas
  import numpy
  import matplotlib.pyplot
  from skimage.io import imread
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: results_long(df, csv_name) and returns: df_long