Leica/Nikon image format

import numpy
import rawpy
path = '_DSC4175.NEF'
raw = rawpy.imread(path)
raw_arr = raw.dcraw_make_mem_image()
raw_arr.shape