code: def vendored_lib(request, tmp_path_factory):
      lib_dir = tmp_path_factory.mktemp("freeimage_dir")
  
      if platform.system() == "Linux":
          lib_extension = ".so"
      elif platform.system() == "Darwin":
          lib_extension = ".dylib"
      elif platform.system() == "Windows":
          lib_extension = ".dll"
  
      fs = fsspec.filesystem(
          "github",
          org="imageio",
          repo="imageio-binaries",
          username=request.config.getoption("--github-username"),
          token=request.config.getoption("--github-token"),
      )
      fs.get(
          [x for x in fs.ls("freeimage/") if x.endswith(lib_extension)],
          lib_dir.as_posix(),
      )
  
      yield lib_dir
  
imports: import os
  import shutil
  import sys
  import platform
  import warnings
  import fsspec
  import imageio.plugins
  import imageio.v3
  import imageio.v2
  import numpy
  import pytest
  from imageio import core
  from imageio.core import IS_PYPY
  from pytest import raises
  from conftest import deprecated_test
label_desc: Use image node_id 1 for calling a global function with example usage: vendored_lib(request, tmp_path_factory) without return types