code: def createVideo(videoQuality):
          
          if videoQuality == VIDEO_QUALITY_ORIGINAL:
              return MediaSettings('', '', '')
          elif videoQuality < len(VIDEO_QUALITIES['bitrate']):
              return MediaSettings(VIDEO_QUALITIES['bitrate'][videoQuality],
                                   VIDEO_QUALITIES['videoQuality'][videoQuality],
                                   VIDEO_QUALITIES['videoResolution'][videoQuality])
          else:
              raise BadRequest('Unexpected video quality')
docs: Returns a :class:`~plexapi.sync.MediaSettings` object, based on provided video quality value.
  
              Parameters:
                  videoQuality (int): idx of quality of the video, one of VIDEO_QUALITY_* values defined in this module.
  
              Raises:
                  :class:`plexapi.exceptions.BadRequest`: when provided unknown video quality.