code: def test_replace_float_attribute_with_uploaded_file(
      self, container: MetadataContainer
  ):
      key = self.gen_key()
      file_size = 100 * SIZE_1KB  # 100 kB
      filename = fake.file_name()
      downloaded_filename = fake.file_name()
  
      with tmp_context():
          # create file_size file
          with open(filename, "wb") as file:
              file.write(b"\0" * file_size)
  
          # set key to a float and sync it separately
          container[key] = 42.0
          container.sync()
  
          # delete and upload in the same queue flush
          container[key].pop()
          container[key].upload(filename)
  
          container.sync()
          container[key].download(downloaded_filename)
  
          assert os.path.getsize(downloaded_filename) == file_size
          with open(downloaded_filename, "rb") as file:
              content = file.read()
              assert len(content) == file_size
              assert content == b"\0" * file_size
  
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 6 for calling the TestUpload obj's underlying member method code with example usage: obj.test_replace_float_attribute_with_uploaded_file(container) without return types