pep8speaks: Hello @mrbean-bremen! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:







* In the file [`pydicom/tests/test_filewriter.py`](https://github.com/pydicom/pydicom/blob/8e8e03845604d07406cda3f4dbcace5a1c659f72/pydicom/tests/test_filewriter.py):

> [Line 877:65](https://github.com/pydicom/pydicom/blob/8e8e03845604d07406cda3f4dbcace5a1c659f72/pydicom/tests/test_filewriter.py#L877): [W605](https://duckduckgo.com/?q=pep8%20W605) invalid escape sequence '\c'
> [Line 897:65](https://github.com/pydicom/pydicom/blob/8e8e03845604d07406cda3f4dbcace5a1c659f72/pydicom/tests/test_filewriter.py#L897): [W605](https://duckduckgo.com/?q=pep8%20W605) invalid escape sequence '\c'


scaramallion: I think `parent` is a better name since its consistent with tree-traversal naming, but apart from that looks good.
mrbean-bremen: Agreed. I didn't name it `parent` because of the different types (tag vs dataset), but this doesn't actually matter. 
mrbean-bremen: Ok, done. The Circle CI builds fail for some reason (`Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found`), but this is probably a temporary problem of the debian repo.
mrbean-bremen: I tried the [recommended workaround](https://discuss.circleci.com/t/apt-get-update-return-404/29237/9) for the circleci, but this didn't work (the latex packages [have not been found](https://circleci.com/gh/mrbean-bremen/pydicom/167)), so it may be the best to wait for the fix in circleci and ignore the failing builds until then.
diff --git a/doc/whatsnew/v1.3.0.rst b/doc/whatsnew/v1.3.0.rst
index 28cd2b4c8..11db76fc9 100644
--- a/doc/whatsnew/v1.3.0.rst
+++ b/doc/whatsnew/v1.3.0.rst
@@ -33,3 +33,4 @@ Fixes
 * Fixed `generate_uid()` returning non-conformant UIDs when `prefix=None`
   (:issue:`788`)
 * Avoid exception if reading from empty file (:issue:`810`)
+* Correctly handle elements with ambiguous VR in sequence items (:issue:`804`)
diff --git a/pydicom/dataset.py b/pydicom/dataset.py
index c1c5fb596..ad69b9a25 100644
--- a/pydicom/dataset.py
+++ b/pydicom/dataset.py
@@ -197,6 +197,9 @@ class Dataset(object):
         self.is_little_endian = None
         self.is_implicit_VR = None
 
+        # the parent data set, if this dataset is a sequence item
+        self.parent = None
+
     def __enter__(self):
         """Method invoked on entry to a with statement."""
         return self
@@ -555,7 +558,13 @@ class Dataset(object):
             # Try the base class attribute getter (fix for issue 332)
             return super(Dataset, self).__getattribute__(name)
         else:
-            return self[tag].value
+            data_elem = self[tag]
+            value = data_elem.value
+            if data_elem.VR == 'SQ':
+                # let a sequence know its parent dataset, as sequence items
+                # may need parent dataset tags to resolve ambiguous tags
+                value.parent = self
+            return value
 
     @property
     def _character_set(self):
@@ -1165,6 +1174,11 @@ class Dataset(object):
                 # don't have this tag yet->create the data_element instance
                 VR = dictionary_VR(tag)
                 data_element = DataElement(tag, VR, value)
+                if VR == 'SQ':
+                    # let a sequence know its parent dataset to pass it
+                    # to its items, who may need parent dataset tags
+                    # to resolve ambiguous tags
+                    data_element.parent = self
             else:
                 # already have this data_element, just changing its value
                 data_element = self[tag]
diff --git a/pydicom/filewriter.py b/pydicom/filewriter.py
index 6151e4ffd..23ab57f09 100644
--- a/pydicom/filewriter.py
+++ b/pydicom/filewriter.py
@@ -69,6 +69,9 @@ def _correct_ambiguous_vr_element(elem, ds, is_little_endian):
         # US if PixelRepresentation value is 0x0000, else SS
         #   For references, see the list at
         #   https://github.com/darcymason/pydicom/pull/298
+        # PixelRepresentation is usually set in the root dataset
+        while 'PixelRepresentation' not in ds and ds.parent:
+            ds = ds.parent
         if ds.PixelRepresentation == 0:
             elem.VR = 'US'
             byte_type = 'H'
diff --git a/pydicom/sequence.py b/pydicom/sequence.py
index 219183b28..72b41a91d 100644
--- a/pydicom/sequence.py
+++ b/pydicom/sequence.py
@@ -43,6 +43,9 @@ class Sequence(MultiValue):
         if isinstance(iterable, Dataset):
             raise TypeError('The Sequence constructor requires an iterable')
 
+        # the parent dataset
+        self._parent = None
+
         # If no inputs are provided, we create an empty Sequence
         if not iterable:
             iterable = list()
@@ -50,6 +53,24 @@ class Sequence(MultiValue):
         # validate_dataset is used as a pseudo type_constructor
         super(Sequence, self).__init__(validate_dataset, iterable)
 
+    @property
+    def parent(self):
+        """Return the parent dataset."""
+        return self._parent
+
+    @parent.setter
+    def parent(self, value):
+        """Set the parent dataset and pass it to all items."""
+        if value != self._parent:
+            self._parent = value
+            for item in self._list:
+                item.parent = self._parent
+
+    def __setitem__(self, i, val):
+        """Set the parent dataset to the new sequence item"""
+        super(Sequence, self).__setitem__(i, val)
+        val.parent = self._parent
+
     def __str__(self):
         """String description of the Sequence."""
         lines = [str(x) for x in self]

"Printing" of certain dicom files fails once, but works the second time
<!-- Instructions For Filing a Bug: https://github.com/pydicom/pydicom/blob/master/CONTRIBUTING.md#filing-bugs -->

#### Description
"Printing" of certain dicom files (see [example](https://github.com/pydicom/pydicom/files/2865551/dicom_exception.zip)) fails once, but not the second time

#### Steps/Code to Reproduce
```python
from pydicom import read_file

a = read_file('...')
print(a)
# triggers exception: AttributeError: With tag (0028, 3000) got exception: Failed to resolve ambiguous VR for tag (0028, 3002): 'Dataset' object has no attribute 'PixelRepresentation'

# try same thing again...
print(a)
# just works...
```

#### Versions
Behaviour as described above at least on:
```
Linux-4.18.0-15-generic-x86_64-with-Ubuntu-18.10-cosmic
('Python', '2.7.15+ (default, Oct  2 2018, 22:12:08) \n[GCC 8.2.0]')
('numpy', '1.14.5')
('pydicom', '1.3.0.dev0')
```
and


```
('pydicom', '1.2.2')
```

Works as expected on:
```
Linux-4.18.0-15-generic-x86_64-with-Ubuntu-18.10-cosmic
('Python', '2.7.15+ (default, Oct  2 2018, 22:12:08) \n[GCC 8.2.0]')
('pydicom', '1.0.1')
```
diff --git a/pydicom/tests/test_filewriter.py b/pydicom/tests/test_filewriter.py
index 0d33bcbeb..ea77c15ed 100644
--- a/pydicom/tests/test_filewriter.py
+++ b/pydicom/tests/test_filewriter.py
@@ -864,6 +864,47 @@ class TestCorrectAmbiguousVR(object):
         assert ds[0x00283002].VR == 'US'
         assert ds.LUTDescriptor == [1, 0]
 
+    def test_ambiguous_element_in_sequence_explicit(self):
+        """Test that writing a sequence with an ambiguous element
+        as explicit transfer syntax works."""
+        # regression test for #804
+        ds = Dataset()
+        ds.PixelRepresentation = 0
+        ds.ModalityLUTSequence = [Dataset()]
+        ds.ModalityLUTSequence[0].LUTDescriptor = [0, 0, 16]
+        ds.ModalityLUTSequence[0].LUTExplanation = None
+        ds.ModalityLUTSequence[0].ModalityLUTType = 'US'  # US = unspecified
+        ds.ModalityLUTSequence[0].LUTData = b'\x0000\x149a\x1f1c\xc2637'
+
+        ds.is_little_endian = True
+        ds.is_implicit_VR = False
+        fp = BytesIO()
+        ds.save_as(fp, write_like_original=True)
+
+        ds = dcmread(fp, force=True)
+        assert 'US' == ds.ModalityLUTSequence[0][0x00283002].VR
+
+    def test_ambiguous_element_in_sequence_implicit(self):
+        """Test that reading a sequence with an ambiguous element
+        from a file with implicit transfer syntax works."""
+        # regression test for #804
+        ds = Dataset()
+        ds.PixelRepresentation = 0
+        ds.ModalityLUTSequence = [Dataset()]
+        ds.ModalityLUTSequence[0].LUTDescriptor = [0, 0, 16]
+        ds.ModalityLUTSequence[0].LUTExplanation = None
+        ds.ModalityLUTSequence[0].ModalityLUTType = 'US'  # US = unspecified
+        ds.ModalityLUTSequence[0].LUTData = b'\x0000\x149a\x1f1c\xc2637'
+
+        ds.is_little_endian = True
+        ds.is_implicit_VR = True
+        fp = BytesIO()
+        ds.save_as(fp, write_like_original=True)
+        ds = dcmread(fp, force=True)
+        # we first have to access the value to trigger correcting the VR
+        assert 16 == ds.ModalityLUTSequence[0].LUTDescriptor[2]
+        assert 'US' == ds.ModalityLUTSequence[0][0x00283002].VR
+
 
 class TestCorrectAmbiguousVRElement(object):
     """Test filewriter.correct_ambiguous_vr_element"""

pip install -e .
parse_log_pytest
requirements.txt
numpy>=1.16.0 pytest
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
importlib-metadata==4.8.3
iniconfig==1.1.1
numpy==1.19.5
packaging==21.3
pluggy==1.0.0
py==1.11.0
-e git+https://github.com/pydicom/pydicom.git@356a51ab4bc54fd18950041ebc44dbfa1a425a10#egg=pydicom
pyparsing==3.1.4
pytest==7.0.1
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: pydicom
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - numpy==1.19.5
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/pydicom

pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_ambiguous_element_in_sequence_explicit pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_ambiguous_element_in_sequence_implicit
pydicom/tests/test_filewriter.py::TestWriteFile::testRTPlan pydicom/tests/test_filewriter.py::TestWriteFile::testRTDose pydicom/tests/test_filewriter.py::TestWriteFile::testCT pydicom/tests/test_filewriter.py::TestWriteFile::testMR pydicom/tests/test_filewriter.py::TestWriteFile::testUnicode pydicom/tests/test_filewriter.py::TestWriteFile::testMultiPN pydicom/tests/test_filewriter.py::TestWriteFile::testJPEG2000 pydicom/tests/test_filewriter.py::TestWriteFile::testListItemWriteBack pydicom/tests/test_filewriter.py::TestWriteFile::testwrite_short_uid pydicom/tests/test_filewriter.py::TestWriteFile::test_write_no_ts pydicom/tests/test_filewriter.py::TestWriteFile::test_write_double_filemeta pydicom/tests/test_filewriter.py::TestWriteFile::test_write_ffff_ffff pydicom/tests/test_filewriter.py::TestWriteFile::test_write_removes_grouplength pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testRTPlan pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testRTDose pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testCT pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testMR pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testUnicode pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testMultiPN pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testJPEG2000 pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testListItemWriteBack pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::testwrite_short_uid pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::test_write_no_ts pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::test_write_double_filemeta pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::test_write_ffff_ffff pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::test_write_removes_grouplength pydicom/tests/test_filewriter.py::TestScratchWriteDateTime::test_multivalue_DA pydicom/tests/test_filewriter.py::TestWriteDataElement::test_empty_AT pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_empty_LO pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_DA pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_multi_DA pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_TM pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_multi_TM pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_DT pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_multi_DT pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_ascii_vr_with_padding pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_OD_implicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_OD_explicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_OL_implicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_OL_explicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_UC_implicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_UC_explicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_UR_implicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_UR_explicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_UN_implicit_little pydicom/tests/test_filewriter.py::TestWriteDataElement::test_write_unknown_vr_raises pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_pixel_representation_vm_one pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_pixel_representation_vm_three pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_pixel_data pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_waveform_bits_allocated pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_lut_descriptor pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_overlay pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_sequence pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVR::test_write_new_ambiguous pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_not_ambiguous pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_not_ambiguous_raw_data_element pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_correct_ambiguous_data_element pydicom/tests/test_filewriter.py::TestCorrectAmbiguousVRElement::test_correct_ambiguous_raw_data_element pydicom/tests/test_filewriter.py::TestWriteAmbiguousVR::test_write_explicit_vr_raises pydicom/tests/test_filewriter.py::TestWriteAmbiguousVR::test_write_explicit_vr_little_endian pydicom/tests/test_filewriter.py::TestWriteAmbiguousVR::test_write_explicit_vr_big_endian pydicom/tests/test_filewriter.py::TestScratchWrite::testImpl_LE_deflen_write pydicom/tests/test_filewriter.py::TestWriteToStandard::test_preamble_default pydicom/tests/test_filewriter.py::TestWriteToStandard::test_preamble_custom pydicom/tests/test_filewriter.py::TestWriteToStandard::test_no_preamble pydicom/tests/test_filewriter.py::TestWriteToStandard::test_none_preamble pydicom/tests/test_filewriter.py::TestWriteToStandard::test_bad_preamble pydicom/tests/test_filewriter.py::TestWriteToStandard::test_prefix pydicom/tests/test_filewriter.py::TestWriteToStandard::test_prefix_none pydicom/tests/test_filewriter.py::TestWriteToStandard::test_ds_changed pydicom/tests/test_filewriter.py::TestWriteToStandard::test_raw_elements_preserved_implicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_raw_elements_preserved_explicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_implicit_to_explicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_write_dataset pydicom/tests/test_filewriter.py::TestWriteToStandard::test_write_dataset_with_explicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_implicit_to_explicit_vr_using_destination pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_explicit_to_implicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_big_to_little_endian pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_little_to_big_endian pydicom/tests/test_filewriter.py::TestWriteToStandard::test_changed_character_set pydicom/tests/test_filewriter.py::TestWriteToStandard::test_transfer_syntax_added pydicom/tests/test_filewriter.py::TestWriteToStandard::test_private_tag_vr_from_implicit_data pydicom/tests/test_filewriter.py::TestWriteToStandard::test_convert_rgb_from_implicit_to_explicit_vr pydicom/tests/test_filewriter.py::TestWriteToStandard::test_transfer_syntax_not_added pydicom/tests/test_filewriter.py::TestWriteToStandard::test_transfer_syntax_raises pydicom/tests/test_filewriter.py::TestWriteToStandard::test_media_storage_sop_class_uid_added pydicom/tests/test_filewriter.py::TestWriteToStandard::test_write_no_file_meta pydicom/tests/test_filewriter.py::TestWriteToStandard::test_raise_no_file_meta pydicom/tests/test_filewriter.py::TestWriteToStandard::test_add_file_meta pydicom/tests/test_filewriter.py::TestWriteToStandard::test_standard pydicom/tests/test_filewriter.py::TestWriteToStandard::test_commandset_no_written pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_bad_elements pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_missing_elements pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_group_length pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_group_length_updated pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_version pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_implementation_version_name_length pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_implementation_class_uid_length pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoToStandard::test_filelike_position pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_default pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_custom pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_no_preamble pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_ds_unchanged pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_file_meta_unchanged pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_filemeta_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_filemeta_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_commandset_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_commandset_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_commandset_filemeta_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_commandset_filemeta_dataset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_commandset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_commandset_filemeta pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_commandset pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_preamble_commandset_filemeta pydicom/tests/test_filewriter.py::TestWriteNonStandard::test_read_write_identical pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_transfer_syntax_not_added pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_bad_elements pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_missing_elements pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_group_length_updated pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_filelike_position pydicom/tests/test_filewriter.py::TestWriteFileMetaInfoNonStandard::test_meta_unchanged pydicom/tests/test_filewriter.py::TestWriteNumbers::test_write_empty_value pydicom/tests/test_filewriter.py::TestWriteNumbers::test_write_list pydicom/tests/test_filewriter.py::TestWriteNumbers::test_write_singleton pydicom/tests/test_filewriter.py::TestWriteNumbers::test_exception pydicom/tests/test_filewriter.py::TestWriteNumbers::test_write_big_endian pydicom/tests/test_filewriter.py::TestWritePN::test_no_encoding pydicom/tests/test_filewriter.py::TestWritePN::test_single_byte_multi_charset_groups pydicom/tests/test_filewriter.py::TestWritePN::test_single_byte_multi_charset_values pydicom/tests/test_filewriter.py::TestWriteText::test_no_encoding pydicom/tests/test_filewriter.py::TestWriteText::test_single_byte_multi_charset_text pydicom/tests/test_filewriter.py::TestWriteText::test_encode_mixed_charsets_text pydicom/tests/test_filewriter.py::TestWriteText::test_single_byte_multi_charset_text_multivalue pydicom/tests/test_filewriter.py::TestWriteText::test_invalid_encoding pydicom/tests/test_filewriter.py::TestWriteText::test_invalid_encoding_enforce_standard pydicom/tests/test_filewriter.py::TestWriteText::test_single_value_with_delimiters pydicom/tests/test_filewriter.py::TestWriteDT::test_format_dt pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_little_endian_correct_data pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_big_endian_correct_data pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_little_endian_incorrect_data pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_big_endian_incorrect_data pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_writing_to_gzip pydicom/tests/test_filewriter.py::TestWriteUndefinedLengthPixelData::test_writing_too_big_data_in_explicit_encoding
pydicom/dataset.py doc/whatsnew/v1.3.0.rst pydicom/filewriter.py pydicom/sequence.py
pydicom/dataset.py doc/whatsnew/v1.3.0.rst pydicom/filewriter.py pydicom/sequence.py