code: def load_path(filename):
      """
      Load font file. Same as :py:func:`~PIL.ImageFont.load`, but searches for a
      bitmap font along the Python path.
  
      :param filename: Name of font file.
      :return: A font object.
      :exception IOError: If the file could not be read.
      """
      for directory in sys.path:
          if isDirectory(directory):
              if not isinstance(filename, str):
                  if py3:
                      filename = filename.decode("utf-8")
                  else:
                      filename = filename.encode("utf-8")
              try:
                  return load(os.path.join(directory, filename))
              except IOError:
                  pass
      raise IOError("cannot find font file")
  
imports: import os
  import sys
  from .None import Image
  from ._util import isDirectory, isPath, py3
label_desc: Use image node_id 3 for calling a global function with example usage: load_path(filename) and returns: load