code: def test_file_from_files(tmpdir):
      path = str(tmpdir)
      fnames = [
          os.path.join(path, "tmp2.txt"),
          os.path.join(path, "tmp1.txt"),
          os.path.join(path, "tmp0.txt"),
          os.path.join(path, "tmp", "tmp2.txt"),
          os.path.join(path, "/__MACOSX/"),
      ]
  
      with pytest.raises(FileNotFoundError):
          fname = examples.downloads.file_from_files(
              "potato.txt", fnames
          )
  
      fname = examples.downloads.file_from_files("tmp1.txt", fnames)
      if os.name == "nt":
          assert PureWindowsPath(fname) == PureWindowsPath(fnames[1])
      else:
          assert fname == fnames[1]
  
      with pytest.raises(RuntimeError, match="Ambiguous"):
          fname = examples.downloads.file_from_files("tmp2.txt", fnames)
  
file_path: pyvista/tests/examples/test_downloads.py
imports: import os
  from pathlib import PureWindowsPath
  import pytest
  import pyvista
  from pyvista import examples
  from pyvista.examples import downloads
label_desc: Use image node_id 3 for calling a global function with example usage: test_file_from_files(tmpdir) without return types