class_docstr: See :mod:`imageio.plugins.freeimage`
class_docstr_tok: ["See",":","mod",":","`","imageio.plugins.freeimage","`"]
code: def _can_write(self, request):
      # Ask freeimage, because we are not aware of all formats
      if fi.has_lib():
          if not hasattr(request, "_fif"):
              try:
                  request._fif = fi.getFIF(request.filename, "w")
              except ValueError:  # pragma: no cover
                  if request.raw_uri == RETURN_BYTES:
                      request._fif = self.fif
                  else:
                      request._fif = -1
          if request._fif is self.fif:
              return True
  
file_path: imageio/imageio/plugins/freeimage.py
imports: import numpy
  from ..core import Format, image_as_uint
  from ..core.request import RETURN_BYTES
  from ._freeimage import FNAME_PER_PLATFORM, IO_FLAGS, download, fi
label_desc: Use image node_id 4 for calling the FreeimageFormat obj's underlying member method code with example usage: obj._can_write(request) and returns: True