code: def from_stream(cls, stream, offset):
          
          ifd_parser = _IfdParser(stream, offset)
          entries = dict((e.tag, e.value) for e in ifd_parser.iter_entries())
          return cls(entries)
docs: Return a new |_IfdEntries| instance parsed from *stream* starting at
          *offset*.