code: def versionfromfile(*filepath):
      infile = os.path.join(*filepath)
      with open(infile) as fp:
          version_match = re.search(
              r"^__version__\s*=\s*['\"]([^'\"]*)['\"]", fp.read(), re.M
          )
          if version_match:
              return version_match.group(1)
          raise RuntimeError(
              "Unable to find version string in {}.".format(infile)
          )
  
imports: import os
  import re
  from io import open
  from setuptools import find_packages, setup
label_desc: Use image node_id 3 for calling a global function with example usage: versionfromfile() and returns: version_match