code: def main(batch_size, num_threads, device_id, filename):
      pipeline = pipe(
          batch_size=batch_size,
          num_threads=num_threads,
          device_id=device_id,
      )
      pipeline.serialize(filename=filename)
      print(f"Saved {filename}")
  
imports: import os
  import nvidia.dali
  import nvidia.dali.types
label_desc: Use image node_id 3 for calling a global function with example usage: main(batch_size, num_threads, device_id, filename) without return types