pydicom.filewriter.write_dataset

pydicom.filewriter.write_dataset(fp: DicomIO, dataset: Dataset, parent_encoding: Union[str, List[str]] = 'iso8859') int

Write a Dataset dictionary to the file. Return the total length written.