code: def download(url, path, chunk_size):
      """
      param url: File download source address, str or list.
      param path: File save path, default path/name/name_data.csv.
      """
      from bigdl.nano.utils.common import invalidInputError
  
      req = requests.get(url, stream=True)
      file_size = bytes_convert(int(req.headers["content-length"]))
      invalidInputError(
          req.status_code == 200,
          "download failure, please check the network.",
      )
      file_name = url.split("/")[-1]
      logger.info(
          f"Start download {file_name.partition('.')[0]}, file size: {file_size}"
      )
      with open(os.path.join(path, file_name), "wb") as f:
          for chunk in req.iter_content(chunk_size):
              if chunk:
                  f.write(chunk)
                  f.flush()
  
imports: import os
  import re
  import zipfile
  import tarfile
  import requests
  import logging
  import pandas
  import numpy
  from bigdl.chronos.data.tsdataset import TSDataset
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: download(url, path, chunk_size) without return types