docstr: Almost all usages of `File` class consists of passing `path` to `File` constructor
docstr_tok: ["Almost","all","usages","of","`","File","`","class","consists","of","passing","`","path","`","to","`","File","`","constructor"]
code: def test_file_constructor(self):
      """Almost all usages of `File` class consists of passing `path` to `File` constructor"""
      paths = ["some/path.png", "file.ext", "file/without/ext"]
      for path in paths:
          file1 = File(path)
          file2 = File.from_path(path)
          self.assertEqual(file1.path, file2.path)
          self.assertEqual(file1.extension, file2.extension)
          self.assertEqual(file1.file_type, file2.file_type)
  
imports: import pickle
  import unittest
  from io import BytesIO, StringIO
  import numpy
  from bokeh.plotting import figure
  from PIL import Image
  from neptune.exceptions import NeptuneException, StreamAlreadyUsedException
  from neptune.internal.types.file_types import FileType, InMemoryComposite
  from neptune.internal.utils.images import _get_pil_image_data
  from neptune.types import File
  from tests.e2e.utils import tmp_context
label_desc: Use image node_id 1 for calling the TestFile obj's underlying member method code with example usage: obj.test_file_constructor() without return types