code: def raise_ioerror(error):
      try:
          message = Image.core.getcodecstatus(error)
      except AttributeError:
          message = ERRORS.get(error)
      if not message:
          message = "decoder error %d" % error
      raise IOError(message + " when reading image file")
  
imports: import io
  import struct
  import sys
  from .None import Image
  from ._util import isPath
label_desc: Use image node_id 1 for calling a global function with example usage: raise_ioerror(error) without return types