code: def get_setup_version(reponame):
      """
      Helper to get the current version from either git describe or the
      .version file (if available).
      """
      basepath = os.path.split(__file__)[0]
      version_file_path = os.path.join(basepath, reponame, ".version")
      try:
          from param import version
      except:
          version = None
      if version is not None:
          return version.Version.setup_version(
              basepath, reponame, archive_commit="$Format:%h$"
          )
      else:
          print(
              "WARNING: param>=1.6.0 unavailable. If you are installing a package, this warning can safely be ignored. If you are creating a package or otherwise operating in a git repository, you should install param>=1.6.0."
          )
          return json.load(open(version_file_path, "r"))[
              "version_string"
          ]
  
file_path: geoviews/setup.py
imports: import sys, os, json
  import shutil
  from setuptools import setup, find_packages
  from setuptools.command.develop import develop
  from setuptools.command.install import install
  from setuptools.command.sdist import sdist
  import pyct.build
label_desc: Use image node_id 1 for calling a global function with example usage: get_setup_version(reponame) and returns: version, json