code: def main():
      config = {}
      with open(args.config, "r") as file:
          config = yaml.safe_load(file)
      batch_size = config["dali"]["batch_size"]
      num_threads = config["dali"]["num_threads"]
      device_id = config["dali"]["device_id"]
      seed = config["dali"]["seed"]
      pipeline_filename = config["dali"]["pipeline_file"]
  
      pipeline = pipe(
          batch_size=batch_size,
          num_threads=num_threads,
          device_id=device_id,
          seed=seed,
      )
      pipeline.serialize(filename=pipeline_filename)
      print("Saved {}".format(pipeline_filename))
  
imports: import nvidia.dali
  import nvidia.dali.types
  import yaml
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types