code: def get_version_cmdclass(version_file) -> dict:
      with open(version_file) as fobj:
          code = fobj.read()
  
      globals_ = {"__file__": str(version_file)}
      exec(code, globals_)
  
      # When `_version.py` is replaced, it should still contain `__version__`,
      # but no longer "cmdclass".
      if "cmdclass" not in globals_:
          assert "__version__" in globals_
          return {}
  
      return globals_["cmdclass"]()
  
file_path: gluonts/setup.py
imports: import distutils.cmd
  import sys
  from pathlib import Path
  from textwrap import dedent
  from setuptools import setup
label_desc: Use image node_id 1 for calling a global function with example usage: get_version_cmdclass(version_file) and returns: globals_, dict