code: def _generic_interpreter(name, py_version):
      version = sysconfig.get_config_var("py_version_nodot")
      if not version:
          version = "".join(map(str, py_version[:2]))
      return "{name}{version}".format(name=name, version=version)
  
imports: from __future__ import absolute_import
  import distutils.util
  import platform
  import re
  import sys
  import sysconfig
  import warnings
label_desc: Use image node_id 22 for calling a global function with example usage: _generic_interpreter(name, py_version) and returns: str