code: def _get_nnabla_config():
      config_files = []
      config_files.append(
          join(dirname(abspath(__file__)), "nnabla.conf")
      )
      if os.name == "posix":
          config_files.append("/etc/nnabla.conf")
          config_files.append(abspath(join(expanduser("~"), ".nnabla")))
          config_files.append(abspath(join(os.getcwd(), "nnabla.conf")))
      elif os.name == "nt":
          from win32com.shell import shell, shellcon
  
          config_files.append(
              abspath(
                  join(
                      shell.SHGetFolderPath(
                          0, shellcon.CSIDL_COMMON_APPDATA, None, 0
                      ),
                      "NNabla",
                      "nnabla.ini",
                  )
              )
          )
          config_files.append(
              abspath(
                  join(
                      shell.SHGetFolderPath(
                          0, shellcon.CSIDL_APPDATA, None, 0
                      ),
                      "NNabla",
                      "nnabla.ini",
                  )
              )
          )
      config_files.append(abspath(join(os.getcwd(), "nnabla.conf")))
  
      if "NNABLA_CONFIG_FILE_PATH" in os.environ:
          conf = os.environ["NNABLA_CONFIG_FILE_PATH"]
          if os.path.exists(conf):
              config_files.append(conf)
  
      config = configparser.RawConfigParser()
      for filename in config_files:
          # print(' Checking {}'.format(filename))
          if exists(filename):
              # print(' Read from {}'.format(filename))
              config.read(filename)
      return config
  
label_desc: Use image node_id 1 for calling a global function with example usage: _get_nnabla_config() and returns: config