parameters: (inp)
return_statement: return profile, name
docstring: Extract profile from PNG file.  Return (*profile*, *name*)
      pair.
docstring_summary: Extract profile from PNG file.  Return (*profile*, *name*)
      pair.
docstring_tokens: Extract profile from PNG file . Return ( * profile * * name * ) pair .
function: def profileFromPNG(inp):
      """Extract profile from PNG file.  Return (*profile*, *name*)
      pair."""
      r = png.Reader(file=inp)
      _,chunk = r.chunk('iCCP')
      i = chunk.index('\x00')
      name = chunk[:i]
      compression = chunk[i+1]
      assert compression == chr(0)
      profile = chunk[i+2:].decode('zlib')
      return profile, name
function_tokens: def profileFromPNG ( inp ) : r = png . Reader ( file = inp ) _ , chunk = r . chunk ( 'iCCP' ) i = chunk . index ( '\x00' ) name = chunk [ : i ] compression = chunk [ i + 1 ] assert compression == chr ( 0 ) profile = chunk [ i + 2 : ] . decode ( 'zlib' ) return profile , name