class_docstr: unittest for NetworkMorphismTuner
      
class_docstr_tok: ["unittest","for","NetworkMorphismTuner"]
docstr: unittest for generate_parameters function
          
docstr_tok: ["unittest","for","generate_parameters","function"]
code: def test_generate_parameters(self):
      """unittest for generate_parameters function"""
  
      tuner = NetworkMorphismTuner()
      model_json = tuner.generate_parameters(0)
      model_json = json.loads(model_json)
      self.assertEqual(model_json["input_shape"], [32, 32, 3])
      self.assertEqual(tuner.total_data[0][1:], (-1, 0))
  
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 5 for calling the NetworkMorphismTestCase obj's underlying member method code with example usage: obj.test_generate_parameters() without return types