code: def get_python_version(python_bin_path):
      version_output = shell(
          [
              python_bin_path,
              "-c",
              (
                  'import sys; print("{}.{}".format(sys.version_info[0], '
                  "sys.version_info[1]))"
              ),
          ]
      )
      major, minor = map(int, version_output.split("."))
      return major, minor
  
imports: import argparse
  import collections
  import hashlib
  import os
  import platform
  import re
  import shutil
  import stat
  import subprocess
  import sys
  import textwrap
  import urllib.request
  import logging
label_desc: Use image node_id 4 for calling a global function with example usage: get_python_version(python_bin_path) and returns: major,  minor