code: def execute(self):
      nnp = nnabla_pb2.NNablaProtoBuf()
      nnp.CopyFrom(self._nnp)
  
      nnp.ClearField("network")
      for network in self._nnp.network:
          net = nnp.network.add()
          net.CopyFrom(self._expand_network(network))
  
      for optimizer in nnp.optimizer:
          self._expand_parameter_variable(optimizer)
  
      for executor in nnp.executor:
          self._expand_parameter_variable(executor)
  
      return nnp
  
file_path: nnabla/python/test/core/legacy_expander.py
imports: import collections
  import re
  from nnabla.utils import nnabla_pb2
label_desc: Use image node_id 6 for calling the NnpExpander obj's underlying member method code with example usage: obj.execute() and returns: nnp