pydicom.config.show_file_meta

pydicom.config.show_file_meta = True

If True (default), the ‘str’ and ‘repr’ methods of Dataset begin with a separate section displaying the file meta information data elements

Added in version 2.0.