code: def test_single_file_override(
      self, container: MetadataContainer, delete_attribute: bool
  ):
      key = self.gen_key()
      filename1 = fake.file_name()
      filename2 = fake.file_name()
      content1 = os.urandom(random.randint(SIZE_1KB, 100 * SIZE_1KB))
      content2 = os.urandom(random.randint(SIZE_1KB, 100 * SIZE_1KB))
      downloaded_filename = fake.file_name()
  
      with tmp_context():
          # create file1 and file2
          with open(filename1, "wb") as file1, open(
              filename2, "wb"
          ) as file2:
              file1.write(content1)
              file2.write(content2)
  
          # upload file1 to key
          container[key].upload(filename1)
  
          if delete_attribute:
              # delete attribute
              del container[key]
              # make sure that attribute does not exist
              container.sync()
              with pytest.raises(AttributeError):
                  container[key].download(downloaded_filename)
  
          # then upload file2 to the same key
          container[key].upload(filename2)
  
          # check if there's content of SECOND uploaded file
          container.sync()
          container[key].download(downloaded_filename)
          with open(downloaded_filename, "rb") as file:
              content = file.read()
              assert len(content) == len(content2)
              assert content == content2
  
imports: import io
  import os
  import random
  import uuid
  from itertools import product
  from typing import Set
  from unittest.mock import Mock
  from zipfile import ZipFile
  import pytest
  from neptune.internal.backends import hosted_file_operations
  from neptune.internal.backends.api_model import MultipartConfig, OptionalFeatures
  from neptune.internal.backends.hosted_neptune_backend import HostedNeptuneBackend
  from neptune.internal.types.file_types import FileType
  from neptune.metadata_containers import MetadataContainer
  from neptune.types import File, FileSet
  from tests.e2e.base import AVAILABLE_CONTAINERS, BaseE2ETest, fake
  from tests.e2e.plot_utils import generate_altair_chart, generate_brokeh_figure, generate_matplotlib_figure, generate_pil_image, generate_plotly_figure, generate_seaborn_figure
  from tests.e2e.utils import SIZE_1KB, SIZE_1MB, initialize_container, preserve_cwd, tmp_context
label_desc: Use image node_id 7 for calling the TestFileSet obj's underlying member method code with example usage: obj.test_single_file_override(container, delete_attribute) without return types