code: def prepare_Grocery_data():
      base_path = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          *"../../../../Examples/Image/DataSets/Grocery".split("/"),
      )
      base_path = os.path.normpath(base_path)
  
      if not os.path.isfile(os.path.join(base_path, "test.txt")):
          # copy from backup location
          base_path_bak = os.path.join(
              os.environ[envvar], *"Image/Grocery".split("/")
          )
          base_path_bak = os.path.normpath(base_path_bak)
  
          zip_path = os.path.join(base_path, "..", "Grocery.zip")
          copyfile(os.path.join(base_path_bak, "Grocery.zip"), zip_path)
          with zipfile.ZipFile(zip_path) as myzip:
              myzip.extractall(os.path.join(base_path, ".."))
  
      return base_path
  
file_path: CNTK/Tests/EndToEndTests/CNTKv2Python/Examples/prepare_test_data.py
imports: import os
  import tarfile
  import zipfile
  from shutil import copyfile
label_desc: Use image node_id 5 for calling a global function with example usage: prepare_Grocery_data() and returns: base_path