import pydicom
filename = r"E:\Codes\Python\tt.dcm";
ds = pydicom.read_file(filename,force=True)
ds.pixel_array
then, this error occurs : AttributeError: 'FileDataset' object has no attribute 'PixelRepresentation' the error information : wrong reasons image