code: def test_correct_python_version():
      """
      Validate that Bazel uses the correct Python version in our minimal tests.
      """
      expected_python_version = os.environ.get(
          "EXPECTED_PYTHON_VERSION", ""
      ).strip()
      assert (
          expected_python_version
      ), f"EXPECTED_PYTHON_VERSION is {expected_python_version}"
  
      actual_major, actual_minor = sys.version_info[:2]
      actual_version = f"{actual_major}.{actual_minor}"
      assert actual_version == expected_python_version, (
          f"expected_python_version={expected_python_version}"
          f"actual_version={actual_version}"
      )
  
imports: import pytest
  import os
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: test_correct_python_version() without return types