code: def forward_function(self, func):
      try:
          # Uncomment when debugging expand_recurrent
          # print(func.name)
          # print(func.function_instance)
          # for n, inp in enumerate(func.variable_inputs):
          #     print('   IN:', n, inp.shape, inp.d.flatten()[0])
          func.function_instance.forward(
              func.variable_inputs, func.variable_outputs
          )
          # Uncomment when debugging expand_recurrent
          # for n, out in enumerate(func.variable_outputs):
          #     print('  OUT:', n, out.shape, out.d.flatten()[0])
      except:
          logger.critical(
              "An error occurred while executing forward of function {} (nn.{}) in network {}".format(
                  func.name, func.function_instance.name, self.name
              )
          )
          raise
  
file_path: nnabla/python/test/core/legacy_network.py
imports: from nnabla.logger import logger
  import nnabla.function
label_desc: Use image node_id 5 for calling the Network obj's underlying member method code with example usage: obj.forward_function(func) without return types