docstr: Record an observation of the objective function
  parameter_id : int
  parameters : dict of parameters
  value: final metrics of the trial, including reward
docstr_tok: ["Record","an","observation","of","the","objective","function","parameter_id",":","int","parameters",":","dict","of","parameters","value",":","final","metrics","of","the","trial",",","including","reward"]
code: def receive_trial_result(
      self, parameter_id, parameters, value, **kwargs
  ):
      """
      Record an observation of the objective function
      parameter_id : int
      parameters : dict of parameters
      value: final metrics of the trial, including reward
      """
      reward = extract_scalar_reward(value)
      if self.optimize_mode is OptimizeMode.Minimize:
          reward = -reward
  
      logger.debug("receive trial result is:\n")
      logger.debug(str(parameters))
      logger.debug(str(reward))
  
      indiv = Individual(graph_loads(parameters), result=reward)
      self.population.append(indiv)
      return
  
imports: from graph import *
  import copy
  import json
  import logging
  import random
  import numpy
  from nni.tuner import Tuner
  from nni.utils import extract_scalar_reward
label_desc: Use image node_id 3 for calling the CustomerTuner obj's underlying member method code with example usage: obj.receive_trial_result(parameter_id, parameters, value) without return types