code: def check_zip_filenames(filename, names):
      for name in names:
          if allowed_zip_names_re.match(name):
              continue
  
          raise Exception(f"bad file inside {filename}: {name}")
  
imports: import pickle
  import collections
  import torch
  import numpy
  import _codecs
  import zipfile
  import re
  from modules import errors
label_desc: Use image node_id 2 for calling a global function with example usage: check_zip_filenames(filename, names) without return types