code: def test_create_from_string_io(self):
      def _file_from_seeked_stream():
          stream = StringIO("aaabbbccc")
          stream.seek(3)  # should not affect created `File`
          return File.from_stream(stream)
  
      self._test_stream_content(
          lambda: File.from_stream(StringIO("aaabbbccc")),
          expected_content=b"aaabbbccc",
          expected_ext="txt",
      )
      self._test_stream_content(
          _file_from_seeked_stream,
          expected_content=b"aaabbbccc",
          expected_ext="txt",
      )
      self._test_stream_content(
          lambda: File.from_stream(
              StringIO("aaabbbccc"), extension="png"
          ),
          expected_content=b"aaabbbccc",
          expected_ext="png",
      )
      self._test_stream_content(
          lambda: File.from_stream(StringIO("aaabbbccc"), seek=5),
          expected_content=b"bccc",
          expected_ext="txt",
      )
  
imports: import pickle
  import unittest
  from io import BytesIO, StringIO
  import numpy
  from bokeh.plotting import figure
  from PIL import Image
  from neptune.exceptions import NeptuneException, StreamAlreadyUsedException
  from neptune.internal.types.file_types import FileType, InMemoryComposite
  from neptune.internal.utils.images import _get_pil_image_data
  from neptune.types import File
  from tests.e2e.utils import tmp_context
label_desc: Use image node_id 9 for calling the TestFile obj's underlying member method code with example usage: obj.test_create_from_string_io() and returns: File