docstr: Creates a File value object from a given path.
  
  Equivalent to `File(path)`, but you can specify the extension separately.
  
  Args:
      path: Path of the file to be stored in the File value object.
      extension (optional): Extension of the file, if not included in the path argument.
  
  Returns:
      `File` value object created based on the path.
  
  For more, see the documentation: https://docs.neptune.ai/api/field_types#from_path
docstr_tok: ["Creates","a","File","value","object","from","a","given","path",".","Equivalent","to","`","File","(","path",")","`",",","but","you","can","specify","the","extension","separately",".","Args",":","path",":","Path","of","the","file","to","be","stored","in","the","File","value","object",".","extension","(","optional",")",":","Extension","of","the","file",",","if","not","included","in","the","path","argument",".","Returns",":","`","File","`","value","object","created","based","on","the","path",".","For","more",",","see","the","documentation",":","https",":","\/\/docs.neptune.ai\/api\/field_types","#","from_path"]
code: def from_path(
      path: str, *, extension: Optional[str] = None
  ) -> "File":
      """Creates a File value object from a given path.
  
      Equivalent to `File(path)`, but you can specify the extension separately.
  
      Args:
          path: Path of the file to be stored in the File value object.
          extension (optional): Extension of the file, if not included in the path argument.
  
      Returns:
          `File` value object created based on the path.
  
      For more, see the documentation: https://docs.neptune.ai/api/field_types#from_path
      """
      verify_type("path", path, str)
      verify_type("extension", extension, (str, type(None)))
  
      file_composite = LocalFileComposite(path, 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 9 for calling the File obj's underlying member method code with example usage: obj.from_path(path) and returns: File