code: def _export_nnp(self, ofile):
      try:
          tmpdir = tempfile.mkdtemp()
          with zipfile.ZipFile(ofile, "w") as nnpzip:
              self._export_files(tmpdir)
              for f in glob.glob("{}/*".format(tmpdir)):
                  nnpzip.write(f, os.path.basename(f))
      finally:
          shutil.rmtree(tmpdir)
  
file_path: nnabla/python/src/nnabla/utils/converter/nnabla/exporter.py
imports: import glob
  import os
  import shutil
  import tempfile
  import warnings
  import zipfile
  import google.protobuf.text_format
  import numpy
  from nnabla.utils import nnabla_pb2
  from nnabla.logger import logger
label_desc: Use image node_id 6 for calling the NnpExporter obj's underlying member method code with example usage: obj._export_nnp(ofile) without return types