code: def draw_graph_command(args):
      import os
      from nnabla.logger import logger
      from nnabla.utils import nnp_graph
      import nnabla.functions as F
      from nnabla.experimental.viewers import SimpleGraph
  
      logger.info("Loading: %s" % args.input)
      nnp = nnp_graph.NnpLoader(args.input)
      names = nnp.get_network_names()
      logger.info("Available networks: %s" % repr(names))
  
      if not args.network:
          logger.info(
              "Drawing all networks as `--network` option is not passed."
          )
          draw_networks = names
      else:
          draw_networks = []
          for n in args.network:
              assert n in names, (
                  "Specified a network `%s` that doesn't exist." % n
              )
              draw_networks.append(n)
  
      if not os.path.isdir(args.output_dir):
          os.makedirs(args.output_dir)
  
      logger.info("Save drawn network(s) into `%s`." % args.output_dir)
  
      for n in draw_networks:
          logger.info("Drawing: %s" % n)
          graph = nnp.get_network(n)
          if not graph.outputs:
              logger.info("No output in `%s`. Skipping." % n)
              continue
          elif len(graph.outputs) > 1:
              out = F.sink(*graph.outputs.values())
          else:
              out = list(graph.outputs.values())[0]
  
          sg = SimpleGraph(format=args.format)
          sg.save(
              out,
              os.path.join(args.output_dir, n.replace(" ", "_")),
              cleanup=True,
          )
  
      return True
  
label_desc: Use image node_id 1 for calling a global function with example usage: draw_graph_command(args) and returns: True