code: def dump(
      pipeline,
      fp,
      save_image_plane_details=True,
      version=5,
      sanitize=False,
  ):
      if version == 5:
          dump_v5(pipeline, fp, save_image_plane_details, sanitize)
      elif version == 6:
          dump_v6(pipeline, fp, save_image_plane_details)
      else:
          raise NotImplementedError("Invalid pipeline version")
  
label_desc: Use image node_id 1 for calling a global function with example usage: dump(pipeline, fp, save_image_plane_details, version, sanitize) without return types