import pydicom from pydicom import dcmread from pydicom.data import get_testdata_file fpath = get_testdata_file("MR_small.dcm") ds = pydicom.dcmread(fpath)