code: def _read_bitmap(filename, flags):
      """Load a file to a FreeImage bitmap pointer"""
      ftype = _FI.FreeImage_GetFileType(_bytestr(filename), 0)
      if ftype == -1:
          raise ValueError(
              "mahotas.freeimage: cannot determine type of file %s"
              % filename
          )
      bitmap = _FI.FreeImage_Load(ftype, _bytestr(filename), flags)
      if not bitmap:
          raise ValueError(
              "mahotas.freeimage: could not load file %s" % filename
          )
      return bitmap
  
imports: import sys
  import os
  import ctypes
  import ctypes.util
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: _read_bitmap(filename, flags) and returns: bitmap