docstr: We have to support `path` parameter since almost all of `File` usages by our users look like `File(path)`.
docstr_tok: ["We","have","to","support","`","path","`","parameter","since","almost","all","of","`","File","`","usages","by","our","users","look","like","`","File","(","path",")","`","."]
code: def __init__(
      self,
      path: Optional[str] = None,
      file_composite: Optional[FileComposite] = None,
  ):
      """We have to support `path` parameter since almost all of `File` usages by our users look like `File(path)`."""
      verify_type("path", path, (str, type(None)))
      verify_type(
          "file_composite", file_composite, (FileComposite, type(None))
      )
  
      if path is not None and file_composite is not None:
          raise ValueError(
              "path and file_composite are mutually exclusive"
          )
      if path is None and file_composite is None:
          raise ValueError("path or file_composite is required")
      if path is not None:
          self._file_composite = LocalFileComposite(path)
      else:
          self._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 1 to create a new File object from inherited base classes: Atom with example: obj = File(path, file_composite)