def imread(filename, *args, **kwargs):
try:<EOL><INDENT>netpbm = NetpbmFile(filename)<EOL>image = netpbm.asarray()<EOL><DEDENT>finally:<EOL><INDENT>netpbm.close()<EOL><DEDENT>return image<EOL>
Return image data from Netpbm file as numpy array.

    `args` and `kwargs` are arguments to NetpbmFile.asarray().

    Examples
    --------
    >>> image = imread('_tmp.pgm')