code: def _py_vs_parity_check():
      container_py_vs = platform.python_version()
      local_py_vs = os.getenv("LOCAL_PYTHON")
  
      if (
          not local_py_vs
          or container_py_vs.split(".")[1] != local_py_vs.split(".")[1]
      ):
          logger.warning(
              f"The local python version {local_py_vs} differs from the python version "
              f"{container_py_vs} on the container. Please align the two to avoid unexpected behavior"
          )
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/model_server/torchserve/inference.py
imports: from __future__ import absolute_import
  import os
  import io
  import cloudpickle
  import shutil
  import platform
  from pathlib import Path
  from functools import partial
  from sagemaker.serve.validations.check_integrity import perform_integrity_check
  from sagemaker.serve.spec.inference_spec import InferenceSpec
  from sagemaker.serve.detector.image_detector import _detect_framework_and_version, _get_model_base
  from sagemaker.serve.detector.pickler import load_xgboost_from_json
  import logging
label_desc: Use image node_id 6 for calling a global function with example usage: _py_vs_parity_check() without return types