parameters: (filename, normalized=True, channels=3)
return_statement: return [band1, band2, band3] if channels == 3 else [band1]
docstring: read/load the dct coefficients from a jpg file
      :param filename: the jpg file name
      :param normalized: boolean. If True, dct coefficients are normalized with quantification tables. If False, no normalization is performed.
      :param channels: number of color channels for the decoded image
      :return: (dct_y, dct_c, dct_r) as numpy arrays of size h x w x nb dct coef
      :note: given an image of size 512 x 512 x 64, the dct_y will be 64 x 64 x 64 and dct_c, dct_r will be 32 x 32 x 64
docstring_summary: read/load the dct coefficients from a jpg file
      :param filename: the jpg file name
      :param normalized: boolean. If True, dct coefficients are normalized with quantification tables. If False, no normalization is performed.
      :param channels: number of color channels for the decoded image
      :return: (dct_y, dct_c, dct_r) as numpy arrays of size h x w x nb dct coef
      :note: given an image of size 512 x 512 x 64, the dct_y will be 64 x 64 x 64 and dct_c, dct_r will be 32 x 32 x 64
docstring_tokens: read / load the dct coefficients from a jpg file : param filename : the jpg file name : param normalized : boolean . If True dct coefficients are normalized with quantification tables . If False no normalization is performed . : param channels : number of color channels for the decoded image : return : ( dct_y dct_c dct_r ) as numpy arrays of size h x w x nb dct coef : note : given an image of size 512 x 512 x 64 the dct_y will be 64 x 64 x 64 and dct_c dct_r will be 32 x 32 x 64
function: def load(filename, normalized=True, channels=3):
      """
      read/load the dct coefficients from a jpg file
      :param filename: the jpg file name
      :param normalized: boolean. If True, dct coefficients are normalized with quantification tables. If False, no normalization is performed.
      :param channels: number of color channels for the decoded image
      :return: (dct_y, dct_c, dct_r) as numpy arrays of size h x w x nb dct coef
      :note: given an image of size 512 x 512 x 64, the dct_y will be 64 x 64 x 64 and dct_c, dct_r will be 32 x 32 x 64
      """
      if not os.path.exists(filename):
          raise IOError('{} does not exists'.format(filename))
      if channels not in {3, 1}:
          raise ValueError('channels should be 3 or 1')
      [band1, band2, band3] = dctfromjpg_wrapper.read_dct_coefficients_from_file(
          filename.encode(), normalized, channels)
      return [band1, band2, band3] if channels == 3 else [band1]
function_tokens: def load ( filename , normalized = True , channels = 3 ) : if not os . path . exists ( filename ) : raise IOError ( '{} does not exists' . format ( filename ) ) if channels not in { 3 , 1 } : raise ValueError ( 'channels should be 3 or 1' ) [ band1 , band2 , band3 ] = dctfromjpg_wrapper . read_dct_coefficients_from_file ( filename . encode ( ) , normalized , channels ) return [ band1 , band2 , band3 ] if channels == 3 else [ band1 ]