code: def get_major_minor_py_version(py_version):
      return ".".join(py_version.split(".")[:2])
  
imports: import base64
  import inspect
  import logging
  import socket
  import subprocess
  import uuid
  from contextlib import closing
  from itertools import islice
  from sys import version_info
label_desc: Use image node_id 1 for calling a global function with example usage: get_major_minor_py_version(py_version) and returns: str