code: def create_from(value) -> "File":
      if isinstance(value, str):
          return File(path=value)
      elif File.is_convertable_to_image(value):
          return File.as_image(value)
      elif File.is_convertable_to_html(value):
          return File.as_html(value)
      elif is_numpy_array(value):
          raise TypeError(
              "Value of type {} is not supported. Please use File.as_image().".format(
                  type(value)
              )
          )
      elif is_pandas_dataframe(value):
          raise TypeError(
              "Value of type {} is not supported. Please use File.as_html().".format(
                  type(value)
              )
          )
      elif isinstance(value, File):
          return value
      raise TypeError(
          "Value of type {} is not supported.".format(type(value))
      )
  
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 15 for calling the File obj's underlying member method code with example usage: obj.create_from(value) and returns: File, File, File, value