code: def get_version(settings=None):
      confdir = os.path.dirname(os.path.abspath(__file__))
      topdir = os.path.dirname(confdir)
      srcdir = os.path.join(topdir, "src")
      source = os.path.join(srcdir, "mpi4py", "__init__.py")
      with open(source, encoding="utf-8") as f:
          m = re.search(r"__version__\s*=\s*'(.*)'", f.read())
      version = m.groups()[0]
      local_version = os.environ.get("MPI4PY_LOCAL_VERSION")
      if local_version:
          version = "{version}+{local_version}".format(**vars())
      return version
  
imports: import re
  import os
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_version(settings) and returns: version