code: def main():
      model_name = "regnetx_400mf"
      print("download weights name: " + model_name)
  
      if model_name not in download_links.keys():
          raise KeyError("{} not in download_links".format(model_name))
  
      headers = {
          "Content-Type": "application/json",
          "Connection": "close",
          "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0",
      }
  
      save_weights = "./" + model_name + ".pth"
  
      req = requests.get(
          url=download_links[model_name],
          stream=True,
          headers=headers,
          timeout=10,
      )
      req.raise_for_status()
      info = int(req.headers["Content-Length"])
  
      accumulate_data = 0
      with open(save_weights, "wb") as f:
          for data in req.iter_content(2048):
              f.write(data)
              accumulate_data += 2048
              print(
                  "\rdownload: [{}Mb/{}Mb] {}%".format(
                      int(accumulate_data / 1024 / 1024),
                      int(info / 1024 / 1024),
                      int(accumulate_data / info * 100),
                  ),
                  end="",
              )
      req.close()
  
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types