def get_dimensions(self, uri):
        """Get the width and height of a given URI or file id.

        Args:
            file_id: the unique identifier to a media file

        Returns:
            the ``(width, height)`` of the given file
        """
        stream_ids = list(self._uri_to_stream_ids.get(uri, []))
        # All streams pointing to this URI should be the same media
        if stream_ids:
            stream_id = stream_ids[0]
            stream = self._element_id_to_element.get(stream_id, None)
            if stream:
                return stream.width, stream.height

        return None, None
Get the width and height of a given URI or file id.

        Args:
            file_id: the unique identifier to a media file

        Returns:
            the ``(width, height)`` of the given file
        
fiftyone/utils/openlabel.py