code: def get_forward_sequence(self, loss_variables):
      forward_sequence = []
      for func in self.functions.values():
          func.forward_complete = False
      for loss in loss_variables:
          self.__forward_recursive(forward_sequence, variable=loss)
      return forward_sequence
  
file_path: nnabla/python/test/core/legacy_network.py
imports: from nnabla.logger import logger
  import nnabla.function
label_desc: Use image node_id 2 for calling the Network obj's underlying member method code with example usage: obj.get_forward_sequence(loss_variables) and returns: forward_sequence