pydicom.config.convert_wrong_length_to_UN

pydicom.config.convert_wrong_length_to_UN = False

Convert a field VR to “UN” and return bytes if bytes length is invalid. Default False.