code: def download_scan(scan_id, out_dir, file_types, use_v1_sens):
      try:
          print(
              "Downloading ScanNet "
              + RELEASE_NAME
              + " scan "
              + scan_id
              + " ..."
          )
          if not os.path.isdir(out_dir):
              os.makedirs(out_dir)
          for ft in file_types:
              v1_sens = use_v1_sens and ft == ".sens"
              url = (
                  BASE_URL
                  + RELEASE
                  + "/"
                  + scan_id
                  + "/"
                  + scan_id
                  + ft
                  if not v1_sens
                  else BASE_URL
                  + RELEASES[V1_IDX]
                  + "/"
                  + scan_id
                  + "/"
                  + scan_id
                  + ft
              )
              out_file = out_dir + "/" + scan_id + ft
              download_file(url, out_file)
          print("Downloaded scan " + scan_id)
      except:
          FAILED_DOWNLOAD.append(scan_id)
  
file_path: torch-points3d/scripts/datasets/download-scannet.py
imports: import argparse
  import os
  import tempfile
  import sys
  import urllib
label_desc: Use image node_id 4 for calling a global function with example usage: download_scan(scan_id, out_dir, file_types, use_v1_sens) without return types