code: def nnabla_examples_root():
      root = os.environ.get("NNABLA_EXAMPLES_ROOT", "")
      if not root:
          root = os.path.join(
              os.path.dirname(__file__), "../../../nnabla-examples"
          )
      NNablaExamples = namedtuple(
          "NNablaExamples", ["available", "path"]
      )
      return NNablaExamples(os.path.isdir(root), root)
  
imports: from __future__ import print_function
  import pytest
  from collections import namedtuple
  import os
  import nnabla
label_desc: Use image node_id 1 for calling a global function with example usage: nnabla_examples_root() and returns: NNablaExamples