code: def to_init_code(self, field: str) -> Optional[str]:
      if self._to_class_name() is not None:
          assert "positional_args" not in self.parameters
          kw_params = ", ".join(
              f"{key}={repr(value)}"
              for key, value in self.parameters.items()
          )
          return f"self.{field} = {self._to_class_name()}({kw_params})"
      return None
  
imports: from typing import Any, Dict, List, Optional, cast
  from nni.common.framework import get_default_framework
label_desc: Use image node_id 6 for calling the PyTorchOperation obj's underlying member method code with example usage: obj.to_init_code(field) and returns: None, str, field, str, self, str, kw_params, str