code: def load_folder_file(file, fileNameRegExp="", allEntries=False):
      """
      Returns an array with the contents (filtered by fileNameRegExp) of a ZIP file.
      The key's are the names or the file or the capturing group definied in the fileNameRegExp
      allEntries validates that all entries in the ZIP file pass the fileNameRegExp
      """
      pairs = []
      for name in os.listdir(file):
          addFile = True
          keyName = name
          if fileNameRegExp != "":
              m = re.match(fileNameRegExp, name)
              if m == None:
                  addFile = False
              else:
                  if len(m.groups()) > 0:
                      keyName = m.group(1)
  
          if addFile:
              pairs.append(
                  [keyName, open(os.path.join(file, name)).read()]
              )
          else:
              if allEntries:
                  raise Exception("ZIP entry not valid: %s" % name)
  
      return dict(pairs)
  
imports: import json
  import sys
  import zipfile
  import re
  import sys
  import os
  import codecs
  import traceback
  import numpy
  from utils import order_points_clockwise
label_desc: Use image node_id 4 for calling a global function with example usage: load_folder_file(file, fileNameRegExp, allEntries) and returns: dict