def METHOD_NAME(self, tag: TagType) -> None:
    """Write a dicom tag (two unsigned shorts) to the file."""
    # make sure is an instance of class, not just a tuple or int
    if not isinstance(tag, BaseTag):
        tag = Tag(tag)
    self.write_US(tag.group)
    self.write_US(tag.element)