code: def test_s3_download(
      self, container: MetadataContainer, bucket, environment
  ):
      first = self.gen_key()
      prefix = f"{environment.project}/{self.gen_key()}/{type(container).__name__}"
      (
          filename,
          filepath,
      ) = fake.unique.file_name(), fake.unique.file_path(
          depth=3, absolute=False
      )
  
      bucket_name, s3_client = bucket
  
      with tmp_context():
          with open(filename, "w", encoding="utf-8") as handler:
              handler.write(fake.paragraph(nb_sentences=5))
  
          os.makedirs(Path(filepath).parent, exist_ok=True)
          with open(filepath, "w", encoding="utf-8") as handler:
              handler.write(fake.paragraph(nb_sentences=5))
  
          s3_client.meta.client.upload_file(
              filename, bucket_name, f"{prefix}/{filename}"
          )
          s3_client.meta.client.upload_file(
              filepath, bucket_name, f"{prefix}/{filepath}"
          )
  
      container[first].track_files(f"s3://{bucket_name}/{prefix}")
  
      container.sync()
  
      with tempfile.TemporaryDirectory() as tmp:
          with with_check_if_file_appears(f"{tmp}/{filename}"):
              container[first].download(tmp)
  
      with tmp_context():
          with with_check_if_file_appears(filename):
              container[first].download()
  
file_path: neptune-client/tests/e2e/standard/test_artifacts.py
imports: import os
  import tempfile
  from pathlib import Path, PurePosixPath
  import pytest
  from neptune.metadata_containers import MetadataContainer
  from tests.e2e.base import AVAILABLE_CONTAINERS, BaseE2ETest, fake
  from tests.e2e.utils import tmp_context, with_check_if_file_appears
label_desc: Use image node_id 5 for calling the TestArtifacts obj's underlying member method code with example usage: obj.test_s3_download(container, bucket, environment) without return types