code: def zipadd(func, zip_file, name):
      """Calls a function with a file object, saving it to a zip file.
  
      :param func: The function to call.
      :type func: callable
  
      :param zip_file: The zip file that `func` should write its data to.
      :type zip_file: :class:`zipfile.ZipFile`
  
      :param name: The name of the file inside of the zipped archive that `func`
          should save its data to.
      :type name: str
  
      """
      with tempfile.NamedTemporaryFile("wb", delete=False) as temp_file:
          func(temp_file)
          temp_file.close()
          zip_file.write(temp_file.name, arcname=name)
      if os.path.isfile(temp_file.name):
          os.remove(temp_file.name)
  
imports: import os
  import pickle
  import sys
  import tempfile
  import zipfile
  from collections import defaultdict
  from contextlib import closing
  from io import BytesIO
  from pickle import HIGHEST_PROTOCOL
  import numpy
  import pytensor
  from pytensor.compile.sharedvalue import SharedVariable
label_desc: Use image node_id 3 for calling a global function with example usage: zipadd(func, zip_file, name) without return types