
    6bir                         S r SSKrSS jrg)z2Utilities common to CIFAR10 and CIFAR100 datasets.    Nc                 2   [        U S5       n[        R                  " USS9n0 nUR                  5        H  u  pVXdUR	                  S5      '   M     UnSSS5        WS   nX1   nUR                  UR                  S   SS	S	5      nXx4$ ! , (       d  f       N;= f)
zInternal utility for parsing CIFAR data.

Args:
    fpath: path the file to parse.
    label_key: key for label data in the retrieve
        dictionary.

Returns:
    A tuple `(data, labels)`.
rbbytes)encodingutf8Ndatar          )opencPickleloaditemsdecodereshapeshape)	fpath	label_keyfd	d_decodedkvr   labelss	            U/home/james-whalen/.local/lib/python3.13/site-packages/tf_keras/src/datasets/cifar.py
load_batchr      s     
eT	aLLW-	GGIDA*+ahhv&'  
 V9D\F<<

1q"b1D< 
	s   AB
B)r   )__doc___pickler   r        r   <module>r       s    9 r   