code: def download_file(url, out_file):
      if not os.path.exists(out_file):
          if not os.path.exists(os.path.dirname(out_file)):
              os.makedirs(os.path.dirname(out_file))
          urllib.request.urlretrieve(url, out_file)
      else:
          log.warning(
              "WARNING: skipping download of existing file " + out_file
          )
  
file_path: torch-points3d/torch_points3d/applications/pretrained_api.py
imports: import os
  import logging
  import urllib.request
  from omegaconf import DictConfig
  from torch_points3d.datasets.dataset_factory import instantiate_dataset
  from torch_points3d.models.model_factory import instantiate_model
  from torch_points3d.models.base_model import BaseModel
  from torch_points3d.datasets.base_dataset import BaseDataset
  from torch_points3d.utils.wandb_utils import Wandb
  from torch_points3d.metrics.model_checkpoint import ModelCheckpoint
label_desc: Use image node_id 1 for calling a global function with example usage: download_file(url, out_file) without return types