code: def save_transforms(transforms, save_data, overwrite=True):
      """Dump `transforms` object."""
      transforms_path = "{}.transforms.pt".format(save_data)
      check_path(
          transforms_path, exist_ok=overwrite, log=logger.warning
      )
      logger.info(f"Saving Transforms to {transforms_path}.")
      torch.save(transforms, transforms_path)
  
imports: import torch
  from onmt.utils.logging import logger
  from onmt.utils.misc import check_path
label_desc: Use image node_id 3 for calling a global function with example usage: save_transforms(transforms, save_data, overwrite) without return types