docstr: Factory method for creating File value objects directly from binary and text streams.
  
  Note that you can only log content from the same stream once.
  In the case of text streams, UTF-8 encoding will be used.
  
  Args:
      stream (IOBase): Stream to be converted.
      seek (optional): Change the stream position to the given byte offset. For details,
          see the IOBase documentation.
      extension (optional): Extension of the created file that will be used for interpreting the type
          of content for visualization.
          If None (default), it will be 'bin' for binary streams and 'txt' for text streams.
  
  Returns:
      `File` value object created from the stream.
  
  See also:
  - from_stream() documentation: https://docs.neptune.ai/api/field_types#from_stream
  - IOBase documentation: https://docs.python.org/3/library/io.html#io.IOBase
docstr_tok: ["Factory","method","for","creating","File","value","objects","directly","from","binary","and","text","streams",".","Note","that","you","can","only","log","content","from","the","same","stream","once",".","In","the","case","of","text","streams",",","UTF-8","encoding","will","be","used",".","Args",":","stream","(","IOBase",")",":","Stream","to","be","converted",".","seek","(","optional",")",":","Change","the","stream","position","to","the","given","byte","offset",".","For","details",",","see","the","IOBase","documentation",".","extension","(","optional",")",":","Extension","of","the","created","file","that","will","be","used","for","interpreting","the","type","of","content","for","visualization",".","If","None","(","default",")",",","it","will","be","'bin","'","for","binary","streams","and","'txt","'","for","text","streams",".","Returns",":","`","File","`","value","object","created","from","the","stream",".","See","also",":","-","from_stream","(",")","documentation",":","https",":","\/\/docs.neptune.ai\/api\/field_types","#","from_stream","-","IOBase","documentation",":","https",":","\/\/docs.python.org\/3\/library\/io.html","#","io.IOBase"]
code: def from_stream(
      stream: IOBase,
      *,
      seek: Optional[int] = 0,
      extension: Optional[str] = None,
  ) -> "File":
      """Factory method for creating File value objects directly from binary and text streams.
  
      Note that you can only log content from the same stream once.
      In the case of text streams, UTF-8 encoding will be used.
  
      Args:
          stream (IOBase): Stream to be converted.
          seek (optional): Change the stream position to the given byte offset. For details,
              see the IOBase documentation.
          extension (optional): Extension of the created file that will be used for interpreting the type
              of content for visualization.
              If None (default), it will be 'bin' for binary streams and 'txt' for text streams.
  
      Returns:
          `File` value object created from the stream.
  
      See also:
      - from_stream() documentation: https://docs.neptune.ai/api/field_types#from_stream
      - IOBase documentation: https://docs.python.org/3/library/io.html#io.IOBase
      """
      verify_type("stream", stream, (IOBase, type(None)))
      verify_type("seek", seek, (int, type(None)))
      verify_type("extension", extension, (str, type(None)))
  
      file_composite = StreamComposite(stream, seek, extension)
      return File(file_composite=file_composite)
  
imports: from io import IOBase
  from typing import TYPE_CHECKING, Optional, TypeVar, Union
  from neptune.internal.types.file_types import FileComposite, InMemoryComposite, LocalFileComposite, StreamComposite
  from neptune.internal.utils import verify_type
  from neptune.internal.utils.images import get_html_content, get_image_content, get_pickle_content, is_altair_chart, is_bokeh_figure, is_matplotlib_figure, is_numpy_array, is_pandas_dataframe, is_pil_image, is_plotly_figure, is_seaborn_figure
  from neptune.types.atoms.atom import Atom
label_desc: Use image node_id 11 for calling the File obj's underlying member method code with example usage: obj.from_stream(stream) and returns: File