code: def upload(path: str, bucket: str, prefix: str):
      """
      Uploads the data for all datasets available locally to an S3 bucket.
      """
      s3 = default_session().client("s3")
      for config in tqdm(DATASET_REGISTRY.values()):
          upload_directory(
              s3,
              path / config.name(),
              bucket,
              f"{prefix}/{config.name()}",
          )
  
imports: import click
  from tqdm.auto import tqdm
  from tsbench.config import DATASET_REGISTRY
  from tsbench.constants import DEFAULT_DATA_PATH
  from tsbench.evaluations.aws import default_session
  from tsbench.evaluations.aws.s3 import upload_directory
  from ._main import datasets
label_desc: Use image node_id 1 for calling a global function with example usage: upload(path, bucket, prefix) without return types