<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def imread(filename, *args, **kwargs):
 """Return image data from Netpbm file as numpy array. `args` and `kwargs` are arguments to NetpbmFile.asarray(). Examples -------- """

    try:
        netpbm = NetpbmFile(filename)
        image = netpbm.asarray()
    finally:
        netpbm.close()
    return image