code: def test_upload_with_changed_working_directory(self, environment):
      os.makedirs("some_other_folder", exist_ok=True)
  
      key_in_mem = self.gen_key()
      key_from_disk = self.gen_key()
  
      with preserve_cwd("some_other_folder"):
          run = initialize_container(
              container_type="run", project=environment.project
          )
          # upload file from memory
          run[key_in_mem].upload(File.from_content("abcd"))
  
          # upload file from disk
          filename = fake.file_name()
          with open(filename, "w") as fp:
              fp.write("test content")
  
          run[key_from_disk].upload(filename)
  
          run.sync()
  
      assert run.exists(key_in_mem)
      assert run.exists(key_from_disk)
      run.stop()
  
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 TestUpload obj's underlying member method code with example usage: obj.test_upload_with_changed_working_directory(environment) without return types