docstr: Factory method for creating File value objects directly from binary and text content.
  
  In the case of text content, UTF-8 encoding will be used.
  
  Args:
      content     (str or bytes): Text or binary content to stored in the `File` value object.
      extension (str, optional, default is None): Extension of the created file.
          File will be used for interpreting the type of content for visualization.
          If `None` it will be bin for binary content and txt for text content.
          Defaults to `None`.
  
  Returns:
      ``File``: value object created from the content
  
  You may also want to check `from_content docs page`_.
  
  .. _from_content docs page:
     https://docs.neptune.ai/api/field_types#from_content
docstr_tok: ["Factory","method","for","creating","File","value","objects","directly","from","binary","and","text","content",".","In","the","case","of","text","content",",","UTF-8","encoding","will","be","used",".","Args",":","content","(","str","or","bytes",")",":","Text","or","binary","content","to","stored","in","the","`","File","`","value","object",".","extension","(","str",",","optional",",","default","is","None",")",":","Extension","of","the","created","file",".","File","will","be","used","for","interpreting","the","type","of","content","for","visualization",".","If","`","None","`","it","will","be","bin","for","binary","content","and","txt","for","text","content",".","Defaults","to","`","None","`",".","Returns",":","``","File","``",":","value","object","created","from","the","content","You","may","also","want","to","check","`","from_content","docs","page","`","_",".","..","_from_content","docs","page",":","https",":","\/\/docs.neptune.ai\/api\/field_types","#","from_content"]
code: def from_content(
      content: Union[str, bytes], *, extension: Optional[str] = None
  ) -> "File":
      """Factory method for creating File value objects directly from binary and text content.
  
      In the case of text content, UTF-8 encoding will be used.
  
      Args:
          content	(str or bytes): Text or binary content to stored in the `File` value object.
          extension (str, optional, default is None): Extension of the created file.
              File will be used for interpreting the type of content for visualization.
              If `None` it will be bin for binary content and txt for text content.
              Defaults to `None`.
  
      Returns:
          ``File``: value object created from the content
  
      You may also want to check `from_content docs page`_.
  
      .. _from_content docs page:
         https://docs.neptune.ai/api/field_types#from_content
      """
      verify_type("content", content, (bytes, str, type(None)))
      verify_type("extension", extension, (str, type(None)))
  
      file_composite = InMemoryComposite(content, 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 10 for calling the File obj's underlying member method code with example usage: obj.from_content(content) and returns: File