code: def generate_parameters(self, parameter_id):
          
          self.count +=1
          if self.count>len(self.values)-1:
              raise nni.NoMoreTrialError('no more parameters now.')
          return self.values[self.count]
docs: Returns a dict of trial (hyper-)parameters, as a serializable object.
  
          Parameters
          ----------
          parameter_id : int