code: def get_version():
      init_py_path = path.join(
          path.abspath(path.dirname(__file__)),
          "detectron2",
          "__init__.py",
      )
      init_py = open(init_py_path, "r").readlines()
      version_line = [
          l.strip() for l in init_py if l.startswith("__version__")
      ][0]
      version = version_line.split("=")[-1].strip().strip("'\"")
  
      # The following is used to build release packages.
      # Users should never use it.
      suffix = os.getenv("D2_VERSION_SUFFIX", "")
      version = version + suffix
      if os.getenv("BUILD_NIGHTLY", "0") == "1":
          from datetime import datetime
  
          date_str = datetime.today().strftime("%y%m%d")
          version = version + ".dev" + date_str
  
          new_init_py = [
              l for l in init_py if not l.startswith("__version__")
          ]
          new_init_py.append('__version__ = "{}"\n'.format(version))
          with open(init_py_path, "w") as f:
              f.write("".join(new_init_py))
      return version
  
file_path: detectron2/setup.py
imports: import glob
  import os
  import shutil
  from os import path
  from setuptools import find_packages, setup
  from typing import List
  import torch
  from torch.utils.cpp_extension import CUDA_HOME, CppExtension, CUDAExtension
label_desc: Use image node_id 1 for calling a global function with example usage: get_version() and returns: version