code: def get_basename_without_extension(filepath):
      """
      Getting the basename of the filepath without the extension
      E.g. 'data/formatted/movie_reviews.pickle' -> 'movie_reviews'
      """
      return os.path.basename(os.path.splitext(filepath)[0])
  
imports: import collections
  import datetime
  import os
  import operator
  import shutil
  import time
  import pickle
label_desc: Use image node_id 6 for calling a global function with example usage: get_basename_without_extension(filepath) and returns: os