docstr: Convert a module to its graph ir (i.e., Graph) along with its input arguments
  
  Parameters
  ----------
  script_module : torch.jit.RecursiveScriptModule
      the script module of ```module``` obtained with torch.jit.script
  module : nn.Module
      the targeted module instance
  module_name : str
      the constructed name space of ```module```
  ir_model : Model
      the whole graph ir
  
  Returns
  -------
  Graph
      the built graph ir from module, ```None``` means do not further parse the module
  dict
      the input arguments of this module
docstr_tok: ["Convert","a","module","to","its","graph","ir","(","i.e.",",","Graph",")","along","with","its","input","arguments","Parameters","--","--","--","--","--","script_module",":","torch.jit.RecursiveScriptModule","the","script","module","of","``","`","module","``","`","obtained","with","torch.jit.script","module",":","nn.Module","the","targeted","module","instance","module_name",":","str","the","constructed","name","space","of","``","`","module","``","`","ir_model",":","Model","the","whole","graph","ir","Returns","--","--","--","-","Graph","the","built","graph","ir","from","module",",","``","`","None","``","`","means","do","not","further","parse","the","module","dict","the","input","arguments","of","this","module"]
code: def convert_module(
      self, script_module, module, module_name, ir_model
  ):
      """
      Convert a module to its graph ir (i.e., Graph) along with its input arguments
  
      Parameters
      ----------
      script_module : torch.jit.RecursiveScriptModule
          the script module of ```module``` obtained with torch.jit.script
      module : nn.Module
          the targeted module instance
      module_name : str
          the constructed name space of ```module```
      ir_model : Model
          the whole graph ir
  
      Returns
      -------
      Graph
          the built graph ir from module, ```None``` means do not further parse the module
      dict
          the input arguments of this module
      """
      return self._convert_module(
          script_module, module, module_name, None, ir_model
      )
  
imports: import re
  import torch
  from nni.nas.space.graph import Graph, GraphModelSpace, Node, Cell, Operation
  from nni.nas.nn.pytorch import InputChoice, MutationAnchor, LayerChoice, MutableModule, Repeat
  from nni.nas.utils import get_init_parameters_or_fail, get_importable_name
  from .op_types import MODULE_EXCEPT_LIST, OpTypeName
  from .utils import _convert_name, build_full_name, _without_shape_info, _extract_info_from_trace_node, get_full_name_by_scope_name, is_layerchoice_node, match_node, build_cand_name, build_python_name
label_desc: Use image node_id 14 for calling the GraphConverter obj's underlying member method code with example usage: obj.convert_module(script_module, module, module_name, ir_model) and returns: self