code: def serialize(path, tbl):
      """Serialize tbl with out-of-band data to path for zero-copy shared memory usage.
  
      If the object to be serialized itself, or the objects it uses for data
      storage (such as numpy arrays) implement the the pickle protocol version 5
      pickle.PickleBuffer type in __reduce_ex__, then this function can store
      these buffers out-of-band as files in `path` so that they subsequently be
      re-used for zero-copy sharing accross processes.
  
      Parameters
      ----------
      path : pathlib.Path
          Empty folder used to save serialized data. Usually a folder /dev/shm
      tbl : object
          Object to serialize. For example a PyArrow Table, a Pandas Dataframe or
          any type that relies on NumPy to store the binary data.
  
      """
      idx = 0
  
      def buffer_callback(buf):
          nonlocal idx
          with open(path / f"{idx}.bin", "wb") as f:
              f.write(buf)
          idx += 1
  
      with open(path / "meta.pkl", "wb") as f:
          pickle.dump(
              tbl, f, protocol=5, buffer_callback=buffer_callback
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: serialize(path, tbl) without return types