code: def set_top_n(self, value):
          ''' setter '''
          if isinstance(value, int) is False:
              raise TypeError("The type of __top_n must be int.")
          self.__top_n = valuf set_top_n(self, value):
          ''' setter '''
          if isinstance(value, int) is False:
              raise TypeError("The type of __top_n must be int.")
          self.__top_n = value
docs: setter