docstr: Parameters
  ----------
  field : str
      the name of member submodule
  output : str
      the output name (lvalue) of this line of code
  inputs : List[str]
      variables used in this line of code
  inputs_value : List[Any]
      some variables are actually constant, their real values are recorded in ```inputs_value```.
      if not constant, we simply put None at the corresponding index
  
  Returns
  -------
  str
      generated code line
docstr_tok: ["Parameters","--","--","--","--","--","field",":","str","the","name","of","member","submodule","output",":","str","the","output","name","(","lvalue",")","of","this","line","of","code","inputs",":","List","[","str","]","variables","used","in","this","line","of","code","inputs_value",":","List","[","Any","]","some","variables","are","actually","constant",",","their","real","values","are","recorded","in","``","`","inputs_value","``","`",".","if","not","constant",",","we","simply","put","None","at","the","corresponding","index","Returns","--","--","--","-","str","generated","code","line"]
code: def to_forward_code(
      self,
      field: str,
      output: str,
      inputs: List[str],
      inputs_value: List[Any],
  ) -> str:
      """
      Parameters
      ----------
      field : str
          the name of member submodule
      output : str
          the output name (lvalue) of this line of code
      inputs : List[str]
          variables used in this line of code
      inputs_value : List[Any]
          some variables are actually constant, their real values are recorded in ```inputs_value```.
          if not constant, we simply put None at the corresponding index
  
      Returns
      -------
      str
          generated code line
      """
      if self.type == "aten::slice":
          raise RuntimeError(
              "not supposed to have aten::slice operation"
          )
      else:
          raise RuntimeError(
              f"unsupported operation type: {self.type} ? {self._to_class_name()}"
          )
  
imports: from typing import Any, Dict, List, Optional, cast
  from nni.common.framework import get_default_framework
label_desc: Use image node_id 7 for calling the PyTorchOperation obj's underlying member method code with example usage: obj.to_forward_code(field, output, inputs, inputs_value) without return types