def __repr__(self):
        # May be overwritten by subclasses
        try:
            source = self.pathname
        except __HOLE__:
            source = '(list of images)'
        return """<Frames>
Source: {pathname}
Length: {count} frames
Frame Shape: {frame_shape!r}
Pixel Datatype: {dtype}""".format(frame_shape=self.frame_shape,
                                  count=len(self),
                                  pathname=source,
                                  dtype=self.pixel_type)
dataset/ETHPy150Open soft-matter/pims/pims/image_sequence.py/ImageSequence.__repr__