code: def _export_local_images(project, image, z):
      
      from ..compute import MODULES
  
      for module in MODULES:
          try:
              img_directory = module.instance().get_images_directory()
          except NotImplementedError:
              # Some modules don't have images
              continue
  
          directory = os.path.split(img_directory)[-1:][0]
          if os.path.exists(image):
              path = image
          else:
              path = os.path.join(img_directory, image)
  
          if os.path.exists(path):
              arcname = os.path.join("images", directory, os.path.basename(image))
              z.write(path, arcname)
              return
docs: Take a project file (.gns3) and export images to the zip
  
      :param image: Image path
      :param z: Zipfile instance for the export