code: def api_version(self, v):
          
          self._api_version = v
          if (self._api_version >= '2.0'):
              self.default_quality = 'default'
              self.allowed_qualities = ['default', 'color', 'bitonal', 'gray']
          else:  # versions 1.0 and 1.1
              self.default_quality = 'native'
              self.allowed_qualities = ['native', 'color', 'bitonal', 'grey']
docs: Set the api_version and associated configurations.