class_docstr: unittest for NetworkMorphismTuner
      
class_docstr_tok: ["unittest","for","NetworkMorphismTuner"]
docstr: unittest for receive_trial_result function
          
docstr_tok: ["unittest","for","receive_trial_result","function"]
code: def test_receive_trial_result(self):
      """unittest for receive_trial_result function"""
  
      tuner = NetworkMorphismTuner()
      model_json = tuner.generate_parameters(0)
      tuner.receive_trial_result(0, {}, 0.7)
      (json_out, father_id, model_id) = tuner.total_data[0]
  
      self.assertEqual(father_id, -1)
      self.assertEqual(model_json, json_out)
  
      ret = {"model_id": 0, "metric_value": 0.7}
      self.assertEqual(tuner.bo.search_tree.adj_list[model_id], [])
      self.assertEqual(tuner.history[-1], ret)
  
imports: import json
  from unittest import TestCase, main
  from copy import deepcopy
  import torch
  from nni.algorithms.hpo.networkmorphism_tuner import NetworkMorphismTuner
  from nni.algorithms.hpo.networkmorphism_tuner.graph import graph_to_json, json_to_graph
  from nni.algorithms.hpo.networkmorphism_tuner.graph_transformer import to_deeper_graph, to_skip_connection_graph, to_wider_graph
  from nni.algorithms.hpo.networkmorphism_tuner.layers import layer_description_extractor
  from nni.algorithms.hpo.networkmorphism_tuner.nn import CnnGenerator
label_desc: Use image node_id 6 for calling the NetworkMorphismTestCase obj's underlying member method code with example usage: obj.test_receive_trial_result() without return types