code: def get_options(self, thumbnail_options, **kwargs):
          
          if isinstance(thumbnail_options, ThumbnailOptions):
              return thumbnail_options
          args = []
          if thumbnail_options is not None:
              args.append(thumbnail_options)
          opts = ThumbnailOptions(*args, **kwargs)
          if 'quality' not in thumbnail_options:
              opts['quality'] = self.thumbnail_quality
          return opts
docs: Get the thumbnail options that includes the default options for this
          thumbnailer (and the project-wide default options).