code: def get_settings(application, force_instance=False):
      
      try:
          return application.settings[SETTINGS_KEY]
      except KeyError:
          if not force_instance:
              return None
      return install(application, None)
docs: Retrieve the media type settings for a application.
  
      :param tornado.web.Application application:
      :keyword bool force_instance: if :data:`True` then create the
          instance if it does not exist
  
      :return: the content settings instance
      :rtype: sprockets.mixins.mediatype.content.ContentSettings