def get_stream_attributes(self, frame_number=None):
        """Aggregates attributes from all streams in this collection.

        Args:
            frame_number (None): a specific frame number for which to get
                stream attributes

        Returns:
            a dictionary of attributes from all streams in this collection
        """
        attributes = {}
        for info in self.infos:
            is_sample = frame_number is None and info.is_sample_level
            has_frame_number = (
                info.frame_numbers and frame_number in info.frame_numbers
            )
            if is_sample or has_frame_number:
                attributes.update(info.get_stream_attributes())

        return attributes
Aggregates attributes from all streams in this collection.

        Args:
            frame_number (None): a specific frame number for which to get
                stream attributes

        Returns:
            a dictionary of attributes from all streams in this collection
        
fiftyone/utils/openlabel.py