code: def get_xblock_settings(self, default=None):
          
          settings_service = self.runtime.service(self, "settings")
          if settings_service:
              return settings_service.get_settings_bucket(self, default=default)
          return default
docs: Gets XBlock-specific settigns for current XBlock
  
          Returns default if settings service is not available.
  
          Parameters:
              default - default value to be used in two cases:
                        * No settings service is available
                        * As a `default` parameter to `SettingsService.get_settings_bucket`