code: def handle_g_error(error, return_value):
      
      error = error[0]
      assert bool(return_value) == (error == ffi.NULL)
      if error != ffi.NULL:
          if error.message != ffi.NULL:
              message = ('Pixbuf error: ' +
                         ffi.string(error.message).decode('utf8', 'replace'))
          else:  # pragma: no cover
              message = 'Pixbuf error'
          glib.g_error_free(error)
          raise ImageLoadingError(message)
docs: Convert a :c:type:`GError**` to a Python :exception:`ImageLoadingError`,
      and raise it.