code: def load_weights(exe, prog, url):
      weight_path = _download_weight(url)
  
      if os.path.isdir(weight_path):
          paddle.static.io.load_vars(
              exe,
              weight_path,
              prog,
              predicate=lambda v: os.path.exists(
                  os.path.join(weight_path, v.name)
              ),
          )
      else:
          paddle.distributed.io.load_persistables(
              exe, "", prog, filename=weight_path
          )
  
file_path: DALI/docs/examples/use_cases/paddle/tsm/utils.py
imports: import errno
  import os
  import shutil
  import sys
  import tarfile
  import tempfile
  import paddle
label_desc: Use image node_id 3 for calling a global function with example usage: load_weights(exe, prog, url) without return types