code: def get_version(file, name="__version__"):
      """Get the version of the package from the given file by
      executing it and extracting the given `name`.
      """
      path = os.path.realpath(file)
      version_ns = {}
      with io.open(path, encoding="utf8") as f:
          exec(f.read(), {}, version_ns)
      return version_ns[name]
  
imports: from collections import defaultdict
  from os.path import join
  import io
  import os
  import functools
  import pipes
  import re
  import shlex
  import subprocess
  import sys
  from setuptools import Command
  from setuptools.command.build_py import build_py
  from setuptools.command.sdist import sdist
  from distutils import log
  from setuptools.command.develop import develop
  from setuptools.command.bdist_egg import bdist_egg
label_desc: Use image node_id 1 for calling a global function with example usage: get_version(file, name) and returns: version_ns